diff --git a/src/openttd.cpp b/src/openttd.cpp --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -62,13 +62,12 @@ #include "town.h" #include "subsidy_func.h" #include "gfx_layout.h" - +#include "viewport_sprite_sorter.h" #include "linkgraph/linkgraphschedule.h" #include - void CallLandscapeTick(); void IncreaseDate(); void DoPaletteAnimations(); @@ -775,6 +774,8 @@ int openttd_main(int argc, char *argv[]) } free(videodriver); + InitializeSpriteSorter(); + /* Initialize the zoom level of the screen to normal */ _screen.zoom = ZOOM_LVL_NORMAL;