View Revisions: Issue #4286
[ Back to Issue ]
Summary | 0004286: unclear return type of MouseRelease | ||
---|---|---|---|
Revision | 2014-01-21 00:44 by abma | ||
Description | docs say its a bool: http://springrts.com/wiki/LuaCallinReturn code says its a int: https://github.com/spring/spring/blob/develop/rts/Lua/LuaHandle.cpp#L1912 int MouseRelease(int x, int y, int button); // return a cmd index, or -1 TODO says it should be a bool / void: https://github.com/spring/spring/blob/develop/rts/System/EventClient.cpp#L155 int CEventClient::MouseRelease(int x, int y, int button) { return -1; } // FIXME - bool / void? |
||
Revision | 2014-01-21 02:06 by abma | ||
Description | docs say its a bool: http://springrts.com/wiki/LuaCallinReturn code says its a int: https://github.com/spring/spring/blob/develop/rts/Lua/LuaHandle.cpp#L1932 int MouseRelease(int x, int y, int button); // return a cmd index, or -1 TODO says it should be a bool / void: https://github.com/spring/spring/blob/develop/rts/System/EventClient.cpp#L155 int CEventClient::MouseRelease(int x, int y, int button) { return -1; } // FIXME - bool / void? |