summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-06-06 13:47:06 +0000
committerDarkvater <darkvater@openttd.org>2005-06-06 13:47:06 +0000
commit5fed47964e28c49f7af879700d013f2897341f4e (patch)
treeac935893726bc7005c7c5ad7d411354e5b8cc0f9 /misc.c
parent71c2a573e193b0e4530cee49e02148320c84c612 (diff)
downloadopenttd-5fed47964e28c49f7af879700d013f2897341f4e.tar.xz
(svn r2420) - Codechange: magic number elminitation of cursorsprites.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index 4c88c8805..6ea0ce98a 100644
--- a/misc.c
+++ b/misc.c
@@ -3,6 +3,7 @@
#include "string.h"
#include "strings.h" // XXX GetParam*
#include "table/strings.h"
+#include "table/sprites.h"
#include "map.h"
#include "vehicle.h"
#include "gfx.h"
@@ -208,7 +209,7 @@ void InitializeGame(uint log_x, uint log_y)
AddTypeToEngines(); // make sure all engines have a type
- SetObjectToPlace(1, 0, 0, 0);
+ SetObjectToPlace(SPR_CURSOR_ZZZ, 0, 0, 0);
_pause = 0;
_fast_forward = 0;
@@ -270,7 +271,7 @@ void GenerateWorld(int mode, uint log_x, uint log_y)
_generating_world = true;
InitializeGame(log_x, log_y);
- SetObjectToPlace(1, 0, 0, 0);
+ SetObjectToPlace(SPR_CURSOR_ZZZ, 0, 0, 0);
// Must start economy early because of the costs.
StartupEconomy();