1
0
Fork 0
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:
Daniel Stenberg 2006-08-16 13:31:40 +00:00
parent f52e03f93c
commit 871be001f7

View file

@ -109,24 +109,26 @@ 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 && (
if(!M_Responder(ev)) {
if(gamestate == GS_LEVEL && (
HU_Responder(ev) || HU_Responder(ev) ||
ST_Responder(ev) || ST_Responder(ev) ||
AM_Responder(ev) AM_Responder(ev)
) ))
) || return;
else
G_Responder(ev); G_Responder(ev);
} }
}
// //
// D_Wipe // D_Wipe