summaryrefslogtreecommitdiff
path: root/ttd.h
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2004-11-26 21:14:42 +0000
committerpasky <pasky@openttd.org>2004-11-26 21:14:42 +0000
commit08e16d966a108d6021fa8007fdc3acfe43670568 (patch)
tree3a6ed37cb9bfbf5d78afab8cffeddfeea6fd2020 /ttd.h
parentdaa599c13545d2e62ed16878f7b97f4b1e13ae33 (diff)
downloadopenttd-08e16d966a108d6021fa8007fdc3acfe43670568.tar.xz
(svn r828) Everyone welcome table/sprites.h in trunk - so far not in use besides enum AnimCursors migrated from viewport.h and tiny fragment of enum Sprites migrated from ttd.h (we should slowly convert trunk to use the symbolic names instead of sprite numbers too to reduce the delta to map). Ported from the map branch, where the work was done by Darkvater, Celestar and Tron.
Diffstat (limited to 'ttd.h')
-rw-r--r--ttd.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/ttd.h b/ttd.h
index 5e60dec6d..154533e93 100644
--- a/ttd.h
+++ b/ttd.h
@@ -1,6 +1,10 @@
#ifndef TTD_H
#define TTD_H
+// FIXME: Include only where really needed.
+// include sprites
+#include "table/sprites.h"
+
#ifndef VARDEF
#define VARDEF extern
#endif
@@ -511,12 +515,6 @@ enum SpecialStrings {
typedef void PlaceProc(uint tile);
-enum Sprites {
- SPR_CANALS_BASE = 0x1406,
- SPR_SLOPES_BASE = SPR_CANALS_BASE + 70,
- SPR_OPENTTD_BASE = SPR_SLOPES_BASE + 74,
-};
-
enum MAP_OWNERS {
OWNER_TOWN = 0xf, // a town owns the tile
OWNER_NONE = 0x10, // nobody owns the tile