Trunk2: Move main trunk along with front in editor mode.

Otherwise, it's impossible to move the trunk because selection is always blocked by the front.
Controls
Sven Eberhardt 2015-07-31 00:50:24 -04:00
parent 324e89a069
commit 25e76ed60f
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,13 @@ private func CheckPosition()
SetPosition(back->GetX(), back->GetY());
}
func EditCursorMoved()
{
// Move main trunk along with front in editor mode
if (back) back->SetPosition(GetX(), GetY());
return true;
}
func SaveScenarioObject() { return false; }
local Plane = 505;