(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.

This commit is contained in:
celestar
2005-10-19 08:34:37 +00:00
parent 758ae7e8f6
commit 5f604ec63a
4 changed files with 72 additions and 29 deletions

View File

@@ -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)