View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0004286 | Spring engine | General | public | 2014-01-21 00:44 | 2014-01-21 06:42 | ||||
Reporter | abma | ||||||||
Assigned To | jK | ||||||||
Priority | high | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 96.0.1+git | ||||||||
Target Version | 97.0 | Fixed in Version | |||||||
Summary | 0004286: unclear return type of MouseRelease | ||||||||
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? | ||||||||
Additional Information | what is cmd index? | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
abma (administrator) 2014-01-21 00:45 |
imo it should be bool as existing lua code returns bool and the value imo would make more sense. (=event is handled or not) |
abma (administrator) 2014-01-21 00:45 |
whats correct? |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2014-01-21 00:44 | abma | New Issue | |
2014-01-21 00:45 | abma | Note Added: 0012750 | |
2014-01-21 00:45 | abma | Assigned To | => abma |
2014-01-21 00:45 | abma | Status | new => assigned |
2014-01-21 00:45 | abma | Note Added: 0012751 | |
2014-01-21 00:45 | abma | Assigned To | abma => jK |
2014-01-21 00:45 | abma | Status | assigned => feedback |
2014-01-21 00:47 | abma | Priority | normal => high |
2014-01-21 02:06 | abma | Description Updated | View Revisions |
2014-01-21 06:42 | jK | Changeset attached | => spring develop 4c104344 |
2014-01-21 06:42 | jK | Status | feedback => resolved |
2014-01-21 06:42 | jK | Resolution | open => fixed |