# HG changeset patch # User peter1138 # Date 1147901172 0 # Node ID b80b50f14fcd9880e98528e17622afd173443c8d # Parent 2d227dbd3d3d331741c43df76c00989dd28f43ca (svn r4901) - Codechange: change 'SpriteGroup *' to 'struct SpriteGroup *' within StationSpec and GRFFile struct declarations. Now only code which actually references those pointers needs to know about the SpriteGroup struct. Remove some unnecessary lingering header dependencies. diff -r 2d227dbd3d3d -r b80b50f14fcd engine.c --- a/engine.c Wed May 17 16:53:56 2006 +0000 +++ b/engine.c Wed May 17 21:26:12 2006 +0000 @@ -13,10 +13,8 @@ #include "vehicle.h" #include "news.h" #include "saveload.h" -#include "sprite.h" #include "variables.h" #include "train.h" -#include "newgrf_engine.h" EngineInfo _engine_info[TOTAL_NUM_ENGINES]; RailVehicleInfo _rail_vehicle_info[NUM_TRAIN_ENGINES]; diff -r 2d227dbd3d3d -r b80b50f14fcd engine.h --- a/engine.h Wed May 17 16:53:56 2006 +0000 +++ b/engine.h Wed May 17 21:26:12 2006 +0000 @@ -6,7 +6,6 @@ /** @file engine.h */ -#include "sprite.h" #include "pool.h" typedef struct RailVehicleInfo { diff -r 2d227dbd3d3d -r b80b50f14fcd newgrf.h --- a/newgrf.h Wed May 17 16:53:56 2006 +0000 +++ b/newgrf.h Wed May 17 21:26:12 2006 +0000 @@ -3,7 +3,6 @@ #ifndef NEWGRF_H #define NEWGRF_H -#include "sprite.h" #include "station.h" typedef struct GRFLabel { @@ -38,7 +37,7 @@ int spriteset_feature; int spritegroups_count; - SpriteGroup **spritegroups; + struct SpriteGroup **spritegroups; StationSpec **stations; diff -r 2d227dbd3d3d -r b80b50f14fcd newgrf_station.h --- a/newgrf_station.h Wed May 17 16:53:56 2006 +0000 +++ b/newgrf_station.h Wed May 17 21:26:12 2006 +0000 @@ -72,8 +72,8 @@ * Used for obtaining the sprite offset of custom sprites, and for * evaluating callbacks. */ - SpriteGroup *spritegroup[NUM_GLOBAL_CID]; - SpriteGroup *groundgroup; + struct SpriteGroup *spritegroup[NUM_GLOBAL_CID]; + struct SpriteGroup *groundgroup; } StationSpec; /** diff -r 2d227dbd3d3d -r b80b50f14fcd sprite.h --- a/sprite.h Wed May 17 16:53:56 2006 +0000 +++ b/sprite.h Wed May 17 21:26:12 2006 +0000 @@ -41,8 +41,4 @@ #define foreach_draw_tile_seq(idx, list) for (idx = list; ((byte) idx->delta_x) != 0x80; idx++) -// XXX Temporary include while juggling about -#include "newgrf_spritegroup.h" - - #endif /* SPRITE_H */