mirror of https://github.com/OpenTTD/OpenTTD.git
(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.
This commit is contained in:
parent
450c13c1da
commit
282b76a0b3
2
engine.c
2
engine.c
|
@ -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];
|
||||
|
|
1
engine.h
1
engine.h
|
@ -6,7 +6,6 @@
|
|||
/** @file engine.h
|
||||
*/
|
||||
|
||||
#include "sprite.h"
|
||||
#include "pool.h"
|
||||
|
||||
typedef struct RailVehicleInfo {
|
||||
|
|
3
newgrf.h
3
newgrf.h
|
@ -3,7 +3,6 @@
|
|||
#ifndef NEWGRF_H
|
||||
#define NEWGRF_H
|
||||
|
||||
#include "sprite.h"
|
||||
#include "station.h"
|
||||
|
||||
typedef struct GRFLabel {
|
||||
|
@ -38,7 +37,7 @@ typedef struct GRFFile {
|
|||
int spriteset_feature;
|
||||
|
||||
int spritegroups_count;
|
||||
SpriteGroup **spritegroups;
|
||||
struct SpriteGroup **spritegroups;
|
||||
|
||||
StationSpec **stations;
|
||||
|
||||
|
|
|
@ -72,8 +72,8 @@ typedef struct StationSpec {
|
|||
* 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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue