Skip to content

Commit

Permalink
WaitForTic fix for SPECTATOR mode on Windows #152
Browse files Browse the repository at this point in the history
Former-commit-id: 0c54a70
  • Loading branch information
mwydmuch committed Dec 23, 2016
1 parent 95c0118 commit 39d5881
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/vizdoom/src/viz_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ int (*_I_WaitForTic)(int);
void (*_I_FreezeTime)(bool);

int VIZ_GetTime(bool saveMS){
if(saveMS) vizSavedTime = vizTime;
//if (*viz_allow_input) _I_GetTim(saveMS);
//if(saveMS) vizSavedTime = vizTime;
return vizTime;
}

Expand All @@ -137,6 +138,7 @@ int VIZ_WaitForTic(int tic){
}

void VIZ_FreezeTime (bool frozen){
//if (*viz_allow_input) _I_FreezeTime(frozen);
vizFreeze = frozen;
}

Expand Down Expand Up @@ -167,8 +169,6 @@ void VIZ_Init(){
I_WaitForTic = &VIZ_WaitForTic;
I_FreezeTime = &VIZ_FreezeTime;
}

//for(size_t i = 0; i < VIZ_MAX_PLAYERS; ++i) vizNodesRecv[i] = 0;
}
}

Expand Down Expand Up @@ -213,7 +213,6 @@ void VIZ_Tic(){
if(!*viz_async){
VIZ_MQTic();
VIZ_InputTic();
if(*viz_allow_input) VIZ_WaitForTic(vizTime);
++vizTime;
}
}
Expand Down

0 comments on commit 39d5881

Please sign in to comment.