diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-20 08:12:59 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-20 08:12:59 +0000 |
commit | d955b49e1b35a154c2c79ee477c6aa61ae2f7c16 (patch) | |
tree | 0683779b8407d59054828d210895f34817ce93bd /oldloader.c | |
parent | a5f6677b2000d845f5be1d70064ff0244673e0f7 (diff) | |
download | openttd-d955b49e1b35a154c2c79ee477c6aa61ae2f7c16.tar.xz |
(svn r4917) - NewGRF: remove _custom_sprites_base, now used only to rejig vehicle images from ttd games, as we redetermine all vehicle images after game load anyway.
Diffstat (limited to 'oldloader.c')
-rw-r--r-- | oldloader.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/oldloader.c b/oldloader.c index 073750869..4b5258c54 100644 --- a/oldloader.c +++ b/oldloader.c @@ -392,7 +392,6 @@ static void FixOldVehicles(void) extern TileIndex _animated_tile_list[256]; extern char _name_array[512][32]; -extern uint16 _custom_sprites_base; static byte _old_vehicle_multiplier; static uint8 _old_map3[OLD_MAP_SIZE * 2]; @@ -1219,9 +1218,6 @@ static bool LoadOldVehicle(LoadgameState *ls, int num) v->orders = GetOrder(REMAP_ORDER_IDX(_old_order_ptr)); } AssignOrder(&v->current_order, UnpackOldOrder(_old_order)); - /* TTDPatch maps sprites from 0x2000 up. */ - if (v->cur_image >= 0x2000) - v->cur_image -= 0x2000 - _custom_sprites_base; /* For some reason we need to correct for this */ switch (v->spritenum) { |