diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-17 07:48:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-17 07:48:29 +0100 |
commit | 0891975ad6c8d6d3e15b20f33b22cf5baca7eb62 (patch) | |
tree | 5e34935333741f6376b0a84fa00b3178c584d457 /src/serverenvironment.h | |
parent | b52f3005c315da9e55ffa7f1cbd71f2b18c7ba7f (diff) | |
download | minetest-0891975ad6c8d6d3e15b20f33b22cf5baca7eb62.tar.gz minetest-0891975ad6c8d6d3e15b20f33b22cf5baca7eb62.tar.bz2 minetest-0891975ad6c8d6d3e15b20f33b22cf5baca7eb62.zip |
[CSM] Add core.get_timeofday & core.get_day_count env calls (#5401)
* [CSM] Add core.get_timeofday & core.get_day_count env calls
* [CSM] Add core.get_node_level, core.get_node_max_level, core.find_node_near
Diffstat (limited to 'src/serverenvironment.h')
-rw-r--r-- | src/serverenvironment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serverenvironment.h b/src/serverenvironment.h index b7796b5f1..99110542a 100644 --- a/src/serverenvironment.h +++ b/src/serverenvironment.h @@ -320,7 +320,7 @@ public: //check if there's a line of sight between two positions bool line_of_sight(v3f pos1, v3f pos2, float stepsize=1.0, v3s16 *p=NULL); - u32 getGameTime() { return m_game_time; } + u32 getGameTime() const { return m_game_time; } void reportMaxLagEstimate(float f) { m_max_lag_estimate = f; } float getMaxLagEstimate() { return m_max_lag_estimate; } |