Skip to content

Commit 0c54a70

Browse files
committed
WaitForTic fix for SPECTATOR mode on Windows #152
1 parent 0cae666 commit 0c54a70

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/vizdoom/src/viz_main.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ int (*_I_WaitForTic)(int);
126126
void (*_I_FreezeTime)(bool);
127127

128128
int VIZ_GetTime(bool saveMS){
129-
if(saveMS) vizSavedTime = vizTime;
129+
//if (*viz_allow_input) _I_GetTim(saveMS);
130+
//if(saveMS) vizSavedTime = vizTime;
130131
return vizTime;
131132
}
132133

@@ -137,6 +138,7 @@ int VIZ_WaitForTic(int tic){
137138
}
138139

139140
void VIZ_FreezeTime (bool frozen){
141+
//if (*viz_allow_input) _I_FreezeTime(frozen);
140142
vizFreeze = frozen;
141143
}
142144

@@ -167,8 +169,6 @@ void VIZ_Init(){
167169
I_WaitForTic = &VIZ_WaitForTic;
168170
I_FreezeTime = &VIZ_FreezeTime;
169171
}
170-
171-
//for(size_t i = 0; i < VIZ_MAX_PLAYERS; ++i) vizNodesRecv[i] = 0;
172172
}
173173
}
174174

@@ -213,7 +213,6 @@ void VIZ_Tic(){
213213
if(!*viz_async){
214214
VIZ_MQTic();
215215
VIZ_InputTic();
216-
if(*viz_allow_input) VIZ_WaitForTic(vizTime);
217216
++vizTime;
218217
}
219218
}

0 commit comments

Comments
 (0)