mirror of https://github.com/OpenRCT2/OpenRCT2.git
Update the money effect even when the game is paused (#21102)
* Update the money effect even when the game is paused * Update changelog.txt
This commit is contained in:
parent
c15391fbff
commit
2147b69104
|
@ -10,6 +10,7 @@
|
|||
- Feature: [OpenMusic#50] Added Rock style 4 ride music.
|
||||
- Change: [#20790] Default ride price set to free if park charges for entry.
|
||||
- Change: [#20880] Restore removed default coaster colours.
|
||||
- Change: [#21102] The money effect will now update even when the game is paused.
|
||||
- Fix: [#12299] Placing ride entrances/exits ignores the Disable Clearance Checks cheat.
|
||||
- Fix: [#13473] Guests complain that the default Circus price is too high.
|
||||
- Fix: [#15293] TTF fonts don’t format correctly with OpenGL.
|
||||
|
|
|
@ -173,6 +173,9 @@ void GameState::Tick()
|
|||
NetworkSendTick();
|
||||
}
|
||||
|
||||
// Keep updating the money effect even when paused.
|
||||
UpdateMoneyEffect();
|
||||
|
||||
// Update the animation list. Note this does not
|
||||
// increment the map animation.
|
||||
MapAnimationInvalidateAll();
|
||||
|
|
|
@ -409,6 +409,11 @@ void UpdateAllMiscEntities()
|
|||
Balloon, Duck>();
|
||||
}
|
||||
|
||||
void UpdateMoneyEffect()
|
||||
{
|
||||
MiscUpdateAllTypes<MoneyEffect>();
|
||||
}
|
||||
|
||||
// Performs a search to ensure that insert keeps next_in_quadrant in sprite_index order
|
||||
static void EntitySpatialInsert(EntityBase* entity, const CoordsXY& newLoc)
|
||||
{
|
||||
|
|
|
@ -50,6 +50,7 @@ template<typename T> T* CreateEntityAt(const EntityId index)
|
|||
void ResetAllEntities();
|
||||
void ResetEntitySpatialIndices();
|
||||
void UpdateAllMiscEntities();
|
||||
void UpdateMoneyEffect();
|
||||
void EntitySetCoordinates(const CoordsXYZ& entityPos, EntityBase* entity);
|
||||
void EntityRemove(EntityBase* entity);
|
||||
uint16_t RemoveFloatingEntities();
|
||||
|
|
Loading…
Reference in New Issue