follow-up bit for consoletty.c
Limit the #ifdef INSURANCE range to only the function call that requires it.
This commit is contained in:
@@ -3120,17 +3120,17 @@ default_checkinput(
|
|||||||
if (dwWait == WAIT_FAILED)
|
if (dwWait == WAIT_FAILED)
|
||||||
return '\033';
|
return '\033';
|
||||||
#endif
|
#endif
|
||||||
#ifdef INSURANCE
|
|
||||||
if (iflags.idlecheckpoint
|
if (iflags.idlecheckpoint
|
||||||
&& dwWait == WAIT_TIMEOUT && !done_a_checkpoint) {
|
&& dwWait == WAIT_TIMEOUT && !done_a_checkpoint) {
|
||||||
/* no input for 30 seconds, so let's take
|
/* no input for 30 seconds, so let's take
|
||||||
* advantage and do a game checkpoint,
|
* advantage and do a game checkpoint,
|
||||||
* then resume the wait.
|
* then resume the wait.
|
||||||
*/
|
*/
|
||||||
|
#ifdef INSURANCE
|
||||||
save_currentstate();
|
save_currentstate();
|
||||||
|
#endif /* INSURANCE */
|
||||||
done_a_checkpoint = TRUE;
|
done_a_checkpoint = TRUE;
|
||||||
} else
|
} else
|
||||||
#endif /* INSURANCE */
|
|
||||||
{
|
{
|
||||||
ReadConsoleInput(hConIn, ir, 1, count);
|
ReadConsoleInput(hConIn, ir, 1, count);
|
||||||
if (mode == 0) {
|
if (mode == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user