summaryrefslogtreecommitdiff
path: root/openttd.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-10-19 08:34:37 +0000
committercelestar <celestar@openttd.org>2005-10-19 08:34:37 +0000
commit5f604ec63a2a603d8c008210ac69760a5f552826 (patch)
tree50fb0bab688d59ca14bf9929118d8dce34567527 /openttd.h
parent758ae7e8f63edbcc193443963e7a8cbe7dcac675 (diff)
downloadopenttd-5f604ec63a2a603d8c008210ac69760a5f552826.tar.xz
(svn r3065) -Codechange/Add: Modified the bridge drawing code so that the basic offset is read from the RailTypeInfo struct. This is (hopefully) the last DrawTile change on the way to electrified railways. While being at it, de-mystified the function a bit and added some asserts.
Diffstat (limited to 'openttd.h')
-rw-r--r--openttd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/openttd.h b/openttd.h
index 26f45f219..4e2119fbe 100644
--- a/openttd.h
+++ b/openttd.h
@@ -1,4 +1,5 @@
/* $Id$ */
+/** @file openttd.h */
#ifndef OPENTTD_H
#define OPENTTD_H
@@ -71,8 +72,8 @@ typedef byte PlayerID;
typedef byte OrderID;
typedef byte CargoID;
typedef uint16 StringID;
-typedef uint32 SpriteID;
-typedef uint32 PalSpriteID;
+typedef uint32 SpriteID; //! The number of a sprite, without mapping bits and colortables
+typedef uint32 PalSpriteID; //! The number of a sprite plus all the mapping bits and colortables
typedef uint32 CursorID;
typedef uint16 EngineID; //! All enginenumbers should be of this type
typedef uint16 UnitID; //! All unitnumber stuff is of this type (or anyway, should be)