1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Update ABM object counts when triggers add objects

Also fixes long-standing accuracy issue due to unknown wider
object count not being incremented.
This commit is contained in:
Ciaran Gultnieks 2014-03-06 19:20:06 +00:00 committed by sapier
parent 16a028dd6b
commit 0643cef09a
2 changed files with 37 additions and 16 deletions

View file

@ -105,6 +105,9 @@ public:
m_day_night_ratio_override = value;
}
// counter used internally when triggering ABMs
u32 m_added_objects;
protected:
// peer_ids in here should be unique, except that there may be many 0s
std::list<Player*> m_players;
@ -118,6 +121,7 @@ protected:
// Overriding the day-night ratio is useful for custom sky visuals
bool m_enable_day_night_ratio_override;
u32 m_day_night_ratio_override;
};
/*