projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9aad4d
)
Minimap: Do a double-typecast to fix compiling with MSVC
author
SmallJoker
<mk939@ymail.com>
Sat, 15 Apr 2017 12:30:27 +0000
(14:30 +0200)
committer
SmallJoker
<mk939@ymail.com>
Sat, 15 Apr 2017 12:30:27 +0000
(14:30 +0200)
src/script/lua_api/l_minimap.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_minimap.cpp
b/src/script/lua_api/l_minimap.cpp
index f32a07ce8cf462eeec010183cb9e772501cb92c6..afb3766fbf71be68bc30267f17c6fc54c2619ab5 100644
(file)
--- a/
src/script/lua_api/l_minimap.cpp
+++ b/
src/script/lua_api/l_minimap.cpp
@@
-115,7
+115,7
@@
int LuaMinimap::l_set_shape(lua_State *L)
if (!lua_isnumber(L, 2))
return 0;
- m->setMinimapShape((MinimapShape)
lua_tonumber(L, 2
));
+ m->setMinimapShape((MinimapShape)
((int)lua_tonumber(L, 2)
));
return 0;
}