mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Skip unnecessary step after map init
There are no map animations to create on an empty map.
This commit is contained in:
parent
b40990570f
commit
14f92966a6
3 changed files with 3 additions and 2 deletions
|
@ -462,7 +462,7 @@ void MapInit(const TileCoordsXY& size)
|
|||
gameState.WidePathTileLoopPosition = {};
|
||||
gameState.MapSize = size;
|
||||
MapRemoveOutOfRangeElements();
|
||||
MapAnimationAutoCreate();
|
||||
ClearMapAnimations();
|
||||
|
||||
auto intent = Intent(INTENT_ACTION_MAP);
|
||||
ContextBroadcastIntent(&intent);
|
||||
|
|
|
@ -601,7 +601,7 @@ const std::vector<MapAnimation>& GetMapAnimations()
|
|||
return _mapAnimations;
|
||||
}
|
||||
|
||||
static void ClearMapAnimations()
|
||||
void ClearMapAnimations()
|
||||
{
|
||||
_mapAnimations.clear();
|
||||
}
|
||||
|
|
|
@ -44,6 +44,7 @@ enum
|
|||
void MapAnimationCreate(int32_t type, const CoordsXYZ& loc);
|
||||
void MapAnimationInvalidateAll();
|
||||
const std::vector<MapAnimation>& GetMapAnimations();
|
||||
void ClearMapAnimations();
|
||||
void MapAnimationAutoCreate();
|
||||
void MapAnimationAutoCreateAtTileElement(TileCoordsXY coords, TileElement* el);
|
||||
void ShiftAllMapAnimations(CoordsXY amount);
|
||||
|
|
Loading…
Reference in a new issue