projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fb4efd
)
Fix warnings in mapblock.cpp
author
PilzAdam
<pilzadam@minetest.net>
Sun, 28 Jul 2013 21:34:58 +0000
(23:34 +0200)
committer
PilzAdam
<pilzadam@minetest.net>
Sun, 28 Jul 2013 21:34:58 +0000
(23:34 +0200)
src/mapblock.cpp
patch
|
blob
|
history
diff --git
a/src/mapblock.cpp
b/src/mapblock.cpp
index 56d4416a4168767deef026a1f6a4188be24f95bf..bd2e19b41b0de8c6f158e4a65f23843d6f8ea9bc 100644
(file)
--- a/
src/mapblock.cpp
+++ b/
src/mapblock.cpp
@@
-44,6
+44,10
@@
with this program; if not, write to the Free Software Foundation, Inc.,
*/
MapBlock::MapBlock(Map *parent, v3s16 pos, IGameDef *gamedef, bool dummy):
+ heat(0),
+ heat_time(0),
+ humidity(0),
+ humidity_time(0),
m_parent(parent),
m_pos(pos),
m_gamedef(gamedef),
@@
-58,11
+62,7
@@
MapBlock::MapBlock(Map *parent, v3s16 pos, IGameDef *gamedef, bool dummy):
m_timestamp(BLOCK_TIMESTAMP_UNDEFINED),
m_disk_timestamp(BLOCK_TIMESTAMP_UNDEFINED),
m_usage_timer(0),
- m_refcount(0),
- heat_time(0),
- heat(0),
- humidity_time(0),
- humidity(0)
+ m_refcount(0)
{
data = NULL;
if(dummy == false)