forked from len0rd/rockbox
Convert the "short ciruit operator madness" to plain and simple code that
doesn't cause warnings in gcc 4.1.x. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10613 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f52e03f93c
commit
871be001f7
1 changed files with 13 additions and 11 deletions
|
|
@ -109,23 +109,25 @@ void D_DoAdvanceDemo (void);
|
||||||
*
|
*
|
||||||
* Called by I/O functions when an event is received.
|
* Called by I/O functions when an event is received.
|
||||||
* Try event handlers for each code area in turn.
|
* Try event handlers for each code area in turn.
|
||||||
* cph - in the true spirit of the Boom source, let the
|
|
||||||
* short ciruit operator madness begin!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void D_PostEvent(event_t *ev)
|
void D_PostEvent(event_t *ev)
|
||||||
{
|
{
|
||||||
/* cph - suppress all input events at game start
|
/* cph - suppress all input events at game start
|
||||||
* FIXME: This is a lousy kludge */
|
* FIXME: This is a lousy kludge */
|
||||||
if (gametic < 3) return;
|
if (gametic < 3)
|
||||||
M_Responder(ev) ||
|
return;
|
||||||
(gamestate == GS_LEVEL && (
|
|
||||||
HU_Responder(ev) ||
|
if(!M_Responder(ev)) {
|
||||||
ST_Responder(ev) ||
|
if(gamestate == GS_LEVEL && (
|
||||||
AM_Responder(ev)
|
HU_Responder(ev) ||
|
||||||
)
|
ST_Responder(ev) ||
|
||||||
) ||
|
AM_Responder(ev)
|
||||||
G_Responder(ev);
|
))
|
||||||
|
return;
|
||||||
|
else
|
||||||
|
G_Responder(ev);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue