version 1.30 | | version 1.31 |
---|
| | |
* Game loop for Inferno | | * Game loop for Inferno |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.31 2003/06/27 08:17:35 donut |
| | * hack from sekmu to fix crash on exit from netgames in windows port |
| | * |
* Revision 1.30 2003/03/09 06:34:09 donut | | * Revision 1.30 2003/03/09 06:34:09 donut |
* change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned | | * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned |
* | | * |
| | |
Physics_cheat_flag = 0; | | Physics_cheat_flag = 0; |
} | | } |
| | |
| | |
| | int gameover = 0; |
| | |
// ------------------------------------------------------------------------------------ | | // ------------------------------------------------------------------------------------ |
//this function is the game. called when game mode selected. runs until | | //this function is the game. called when game mode selected. runs until |
//editor mode or exit selected | | //editor mode or exit selected |
| | |
} | | } |
} | | } |
| | |
if ( (Function_mode != FMODE_GAME ) && (Newdemo_state != ND_STATE_PLAYBACK ) && (Function_mode!=FMODE_EDITOR) ) { | | if ( (Function_mode != FMODE_GAME ) && (Newdemo_state != ND_STATE_PLAYBACK ) && (Function_mode!=FMODE_EDITOR) ) |
| | { |
| | if(gameover) |
| | break; |
int choice, fmode; | | int choice, fmode; |
fmode = Function_mode; | | fmode = Function_mode; |
Function_mode = FMODE_GAME; | | Function_mode = FMODE_GAME; |
| | |
} | | } |
| | |
if (Function_mode != FMODE_GAME) | | if (Function_mode != FMODE_GAME) |
| | break; |
| | // longjmp(LeaveGame,1); |
longjmp(LeaveGame,1); | | |
} | | } |
} | | } |
| | |
//Game settings reset | | //Game settings reset |
| | gameover = 0; |
//added on 11/20/99 by Victor Rachels for observermode | | //added on 11/20/99 by Victor Rachels for observermode |
I_am_observer = 0; | | I_am_observer = 0; |
//end this section addition - VR | | //end this section addition - VR |