diff options
author | hackykid <hackykid@openttd.org> | 2005-06-06 22:44:11 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-06-06 22:44:11 +0000 |
commit | 6d78b700757fd7765363754195645c6f02cfba55 (patch) | |
tree | 105b039e5d3807e6c220132364ed2547386be6d7 /vehicle.c | |
parent | 4184611d3a43d046f341858b97c5fb2c1783b58c (diff) | |
download | openttd-6d78b700757fd7765363754195645c6f02cfba55.tar.xz |
(svn r2428) - Feature: [newgrf] Implement shorter train vehicles (Therax), and the callback that goes with it.
- Codechange: Remove some magic numbers (PALETTE_CRASH)
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -528,7 +528,7 @@ static void DoDrawVehicle(Vehicle *v) if (v->vehstatus & VS_DISASTER) { image |= 0x3224000; } else if (v->vehstatus & VS_DEFPAL) { - image |= (v->vehstatus & VS_CRASHED) ? 0x3248000 : SPRITE_PALETTE(PLAYER_SPRITE_COLOR(v->owner)); + image |= (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : SPRITE_PALETTE(PLAYER_SPRITE_COLOR(v->owner)); } AddSortableSpriteToDraw(image, v->x_pos + v->x_offs, v->y_pos + v->y_offs, |