if(console){
emit_sound_np(consolesuccesssound);
freeze=0;
- console=0;
+ console=false;
}
if(!stealthloading){
displaytime[i]+=multiplier;
}
- keyboardfrozen=0;
+ keyboardfrozen=false;
Input::Tick();
if(Input::isKeyPressed(SDLK_F6)){
}
}
if(chatting)
- keyboardfrozen=1;
+ keyboardfrozen=true;
if(Input::isKeyPressed(SDLK_BACKQUOTE)&&debugmode){
- console=1-console;
+ console=!console;
if(console){
OPENAL_SetFrequency(OPENAL_ALL, 0.001);
} else {
winfreeze=0;
if((Input::isKeyDown(SDLK_ESCAPE))&&!campaign&&gameon){
if(console){
- console=0;
+ console=false;
freeze=0;
- }else if(winfreeze){
+ } else if(winfreeze) {
mainmenu=9;
gameon=0;
}
killhotspot=0;
}
- if(!editorenabled&&gameon&&!mainmenu){
+ if(!editorenabled&&gameon&&!mainmenu) {
if(changedelay!=-999)
changedelay-=multiplier/7;
if(player[0].dead)
(player[0].dead||
(alldead&&maptype==mapkilleveryone)||
(winhotspot)||
- (killhotspot))&&
- !winfreeze)
+ (killhotspot)))
loading=1;
if((player[0].dead||
(alldead&&maptype==mapkilleveryone)||
(winhotspot)||
(windialogue)||
(killhotspot))&&
- changedelay<=0){
- if(whichlevel!=-2&&!loading&&!player[0].dead){
- winfreeze=1;
+ changedelay<=0) {
+ if(whichlevel!=-2&&!loading&&!player[0].dead) {
+ winfreeze=true;
changedelay=-999;
}
if(player[0].dead)
}
if(campaign)
- if(mainmenu==0&&winfreeze&&(campaignchoosenext[campaignchoicewhich[whichchoice]])==1)
+ if(mainmenu==0&&winfreeze&&(campaignchoosenext[campaignchoicewhich[whichchoice]]==1)) {
if(campaignnumnext[campaignchoicewhich[whichchoice]]==0)
endgame=1;
- else if(mainmenu==0&&winfreeze){
- if(campaignchoosenext[campaignchoicewhich[whichchoice]]==2)
- stealthloading=1;
- else
- stealthloading=0;
+ } else if(mainmenu==0&&winfreeze) {
+ stealthloading = (campaignchoosenext[campaignchoicewhich[whichchoice]]==2);
if(!stealthloading){
fireSound(firestartsound);