4 |
4 |
5 #include "stdafx.h" |
5 #include "stdafx.h" |
6 #include "openttd.h" |
6 #include "openttd.h" |
7 #include "gfx_func.h" |
7 #include "gfx_func.h" |
8 #include "spritecache.h" |
8 #include "spritecache.h" |
9 #include "table/palettes.h" |
|
10 #include "table/sprites.h" |
|
11 #include "variables.h" |
9 #include "variables.h" |
12 #include "table/control_codes.h" |
|
13 #include "fontcache.h" |
10 #include "fontcache.h" |
14 #include "genworld.h" |
11 #include "genworld.h" |
15 #include "debug.h" |
12 #include "debug.h" |
16 #include "zoom_func.h" |
13 #include "zoom_func.h" |
17 #include "texteff.hpp" |
14 #include "texteff.hpp" |
18 #include "blitter/factory.hpp" |
15 #include "blitter/factory.hpp" |
19 #include "video/video_driver.hpp" |
16 #include "video/video_driver.hpp" |
20 #include "strings_func.h" |
17 #include "strings_func.h" |
21 #include "core/math_func.hpp" |
18 #include "core/math_func.hpp" |
|
19 #include "settings_type.h" |
|
20 |
|
21 #include "table/palettes.h" |
|
22 #include "table/sprites.h" |
|
23 #include "table/control_codes.h" |
22 |
24 |
23 byte _dirkeys; ///< 1 = left, 2 = up, 4 = right, 8 = down |
25 byte _dirkeys; ///< 1 = left, 2 = up, 4 = right, 8 = down |
24 bool _fullscreen; |
26 bool _fullscreen; |
25 CursorVars _cursor; |
27 CursorVars _cursor; |
26 bool _ctrl_pressed; ///< Is Ctrl pressed? |
28 bool _ctrl_pressed; ///< Is Ctrl pressed? |
29 bool _left_button_down; |
31 bool _left_button_down; |
30 bool _left_button_clicked; |
32 bool _left_button_clicked; |
31 bool _right_button_down; |
33 bool _right_button_down; |
32 bool _right_button_clicked; |
34 bool _right_button_clicked; |
33 DrawPixelInfo _screen; |
35 DrawPixelInfo _screen; |
|
36 bool _screen_disable_anim = false; ///< Disable palette animation (important for 32bpp-anim blitter during giant screenshot) |
34 bool _exit_game; |
37 bool _exit_game; |
35 bool _networking; ///< are we in networking mode? |
38 bool _networking; ///< are we in networking mode? |
36 byte _game_mode; |
39 byte _game_mode; |
37 byte _pause_game; |
40 byte _pause_game; |
38 int _pal_first_dirty; |
41 int _pal_first_dirty; |