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,23 +109,25 @@ void D_DoAdvanceDemo (void);
*
* Called by I/O functions when an event is received.
* 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)
{
/* cph - suppress all input events at game start
* FIXME: This is a lousy kludge */
if (gametic < 3) return;
M_Responder(ev) ||
(gamestate == GS_LEVEL && (
HU_Responder(ev) ||
ST_Responder(ev) ||
AM_Responder(ev)
)
) ||
G_Responder(ev);
if (gametic < 3)
return;
if(!M_Responder(ev)) {
if(gamestate == GS_LEVEL && (
HU_Responder(ev) ||
ST_Responder(ev) ||
AM_Responder(ev)
))
return;
else
G_Responder(ev);
}
}
//