summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-05-19 23:52:04 +0000
committertruelight <truelight@openttd.org>2007-05-19 23:52:04 +0000
commit49aa3bedfb1dced207281249da635d28d5f310a3 (patch)
treed468c2b79a9bef97f027aeadc327e65c7fc0ed6e /src/openttd.cpp
parent6954045bb4872b15677562e73d0e028c640ac8a7 (diff)
downloadopenttd-49aa3bedfb1dced207281249da635d28d5f310a3.tar.xz
(svn r9885) -Fix r9846: some last bitshifts with zoom-levels that were forgotten
-Fix r9846: initialize the zoom level for 'screen', as assuming 0 is not correct
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index b4353612b..26119e9e3 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -505,6 +505,8 @@ int ttd_main(int argc, char *argv[])
LoadDriver(MUSIC_DRIVER, _ini_musicdriver);
LoadDriver(VIDEO_DRIVER, _ini_videodriver); // load video last, to prevent an empty window while sound and music loads
_savegame_sort_order = SORT_BY_DATE | SORT_DESCENDING;
+ /* Initialize the zoom level of the screen to normal */
+ _screen.zoom = ZOOM_LVL_NORMAL;
/* restore saved music volume */
_music_driver->set_volume(msf.music_vol);