diff options
author | Ciaran Gultnieks <ciaran@ciarang.com> | 2014-03-06 19:20:06 +0000 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-03-09 11:13:44 +0100 |
commit | 0643cef09a741d1e8a7b971f3ae70b45ac8d44bf (patch) | |
tree | 199751490f94a6aa8d1596e2671fd8f2a8c9dd18 /src/environment.h | |
parent | 16a028dd6bae0c7c2e797489e12d17d719842f99 (diff) | |
download | minetest-0643cef09a741d1e8a7b971f3ae70b45ac8d44bf.tar.gz minetest-0643cef09a741d1e8a7b971f3ae70b45ac8d44bf.tar.bz2 minetest-0643cef09a741d1e8a7b971f3ae70b45ac8d44bf.zip |
Update ABM object counts when triggers add objects
Also fixes long-standing accuracy issue due to unknown wider
object count not being incremented.
Diffstat (limited to 'src/environment.h')
-rw-r--r-- | src/environment.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/environment.h b/src/environment.h index 8cc0bcd7e..d99e27ba4 100644 --- a/src/environment.h +++ b/src/environment.h @@ -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; + }; /* |