View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000525 | Gameplay + OpenGL | [All Projects] Bug | public | 2017-04-02 11:33 | 2017-04-02 12:23 |
Reporter | Major Cooke | ||||
Assigned To | |||||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Summary | 0000525: AddEventHandlers + EventHandlers mixed up | ||||
Description | AddEventHandler appears to be replacing event handlers instead of adding onto them, while EventHandlers allows adding onto the current event handlers instead of replacing. | ||||
Steps To Reproduce | Load the attached file, start a new game. Type this in console: netevent sayhi It should say: OHAI HALLO But it only says: HALLO ----- Open up test.pk3 and change the two AddEventHandlers in MAPINFO to just EventHandlers. Loading the game up again will produce the exact opposite results. | ||||
Tags | No tags attached. | ||||
test.pk3 (436 bytes) |
|
Made a fix for it. | |
There's broken true/false in these lines, which reverses the behavior. GAMEINFOKEY_STRINGARRAY(EventHandlers, "addeventhandlers", 0, true) GAMEINFOKEY_STRINGARRAY(EventHandlers, "eventhandlers", 0, false) Flipping it should fix that. Sorry, late night coding. |
|
Well ahead of you with a PR. :P | |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-04-02 11:33 | Major Cooke | New Issue | |
2017-04-02 11:33 | Major Cooke | File Added: test.pk3 | |
2017-04-02 11:47 | Major Cooke | Note Added: 0001212 | |
2017-04-02 11:47 | ZZYZX | Note Added: 0001213 | |
2017-04-02 11:48 | Major Cooke | Note Added: 0001214 | |
2017-04-02 12:23 | Graf Zahl | Status | new => resolved |
2017-04-02 12:23 | Graf Zahl | Resolution | open => fixed |