X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=bd71d0c5a3f275e71a3397a7b8f9fd0d4166d989;hb=6e022fe74edcab8e9b6be32bcfdd7006f478e2ab;hp=bc63ef9aebf4d4adf4a261908322a13165062566;hpb=d337287c2354ce4d256186e54f5474ecf77a2deb;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index bc63ef9a..bd71d0c5 100644 --- a/src/tools.c +++ b/src/tools.c @@ -399,6 +399,7 @@ void BackToFront() // never redraw single tiles, always redraw the whole field // (redrawing single tiles up to a certain threshold was faster on old, // now legacy graphics, but slows things down on modern graphics now) + // UPDATE: this is now globally defined by value of REDRAWTILES_THRESHOLD if (redraw_mask & REDRAW_TILES) redraw_mask |= REDRAW_FIELD; #endif @@ -4171,6 +4172,9 @@ boolean Request(char *text, unsigned int req_state) break; case KSYM_Escape: +#if defined(TARGET_SDL2) + case KSYM_Back: +#endif result = 0; break; @@ -8839,15 +8843,16 @@ void CheckSingleStepMode_EM(byte action[MAX_PLAYERS], int frame, boolean any_player_moving, boolean player_is_dropping) { - int i; - if (tape.single_step && tape.recording && !tape.pausing) { +#if 0 boolean active_players = FALSE; + int i; for (i = 0; i < MAX_PLAYERS; i++) if (action[i] != JOY_NO_ACTION) active_players = TRUE; +#endif // if (frame == 0) if (frame == 0 && !player_is_dropping)