equal
deleted
inserted
replaced
11 #include "../macros.h" |
11 #include "../macros.h" |
12 #include "../sdl.h" |
12 #include "../sdl.h" |
13 #include "../window.h" |
13 #include "../window.h" |
14 #include "../network.h" |
14 #include "../network.h" |
15 #include "../variables.h" |
15 #include "../variables.h" |
16 #include "../genworld.h" |
|
17 #include "sdl_v.h" |
16 #include "sdl_v.h" |
18 #include <SDL.h> |
17 #include <SDL.h> |
19 |
18 |
20 static SDL_Surface *_sdl_screen; |
19 static SDL_Surface *_sdl_screen; |
21 static bool _all_modes; |
20 static bool _all_modes; |
459 if (_shift_pressed) |
458 if (_shift_pressed) |
460 #else |
459 #else |
461 if (keys[SDLK_TAB]) |
460 if (keys[SDLK_TAB]) |
462 #endif |
461 #endif |
463 { |
462 { |
464 if (!_networking && _game_mode != GM_MENU && !IsGeneratingWorld()) _fast_forward |= 2; |
463 if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2; |
465 } else if (_fast_forward & 2) { |
464 } else if (_fast_forward & 2) { |
466 _fast_forward = 0; |
465 _fast_forward = 0; |
467 } |
466 } |
468 |
467 |
469 cur_ticks = SDL_CALL SDL_GetTicks(); |
468 cur_ticks = SDL_CALL SDL_GetTicks(); |