Fix wall preview not disappearing when starting building placement immediately afterwards.
Adds some extra buildings to WallTest map to make Town Phase available faster. This was SVN commit r11769.
This commit is contained in:
1 parent
a6e256bd1e
commit
d615ac64da
2 files changed
+5
-5
No files matched your search
@@ -1181,8 +1181,8 @@ function handleInputAfterGui(ev)
|
||||
if (placementSupport.mode === "wall")
|
||||
{
|
||||
// Including only the on-screen towers in the next snap candidate list is sufficient here, since the user is
|
||||
// still selecting a starting point (which must necessarily be on-screen). (The update itself happens in the
|
||||
// call to updateBuildingPlacementPreview below).
|
||||
// still selecting a starting point (which must necessarily be on-screen). (The update of the snap entities
|
||||
// itself happens in the call to updateBuildingPlacementPreview below).
|
||||
placementSupport.wallSnapEntitiesIncludeOffscreen = false;
|
||||
}
|
||||
else
|
||||
@@ -1393,7 +1393,7 @@ function startBuildingPlacement(buildTemplate)
|
||||
// to start building a structure, then the highlight selection rings are kept during the construction of the building.
|
||||
// Gives the impression that somehow the hovered-over entity has something to do with the building you're constructing.
|
||||
|
||||
placementSupport.SetDefaultAngle();
|
||||
placementSupport.Reset();
|
||||
|
||||
// find out if we're building a wall, and change the entity appropriately if so
|
||||
var templateData = GetTemplateData(buildTemplate);
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user