IntelOrca/OpenRCT2 — pull request #262 by qcz (2014-08-05 17:28:57+00:00)
Title: Decompiling the staff window

Everything is decompiled from the staff window except the code for show patrol area tool (explanation is at the end)

Also moved `get_arguments_from_action` from `window_guest_list.c` to `peep.c` as it is now used by `window_staff.c` as well.

An ugly hack is required to make the hire staff button work: the `game_do_command` function should return the identifier of the new staff member in the `EDI` registter, but the current version returns only one value, and for a different register (`EDI`). I created a version of `game_do_command` with pointers as arguments (`game_do_commands_p`). It should be removed when this portion of the code becomes more mature.

Part of the code for the show patrol area tool is there but commented out: when clicking the show patrol area button to disable the already enabled tool the mouseup event is called unnecessarily right after the toolabort event and the tool gets re-enabled. I think the problem is somewhere in the window event handling code.