summaryrefslogtreecommitdiff
path: root/src/newgrf_station.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-10 15:51:33 +0000
committerrubidium <rubidium@openttd.org>2010-08-10 15:51:33 +0000
commit3d21fb44aae10d627cf24c7e42485c8f3a33ed42 (patch)
treecb41a3103b0a272d888f079872cb4f6609a1266b /src/newgrf_station.h
parentca7a067b7a57578e05cefec1ef647a67a9b5be07 (diff)
downloadopenttd-3d21fb44aae10d627cf24c7e42485c8f3a33ed42.tar.xz
(svn r20436) -Codechange: use GRFFilePropsBase's spritegroup for stations.
Diffstat (limited to 'src/newgrf_station.h')
-rw-r--r--src/newgrf_station.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/newgrf_station.h b/src/newgrf_station.h
index 69a8f4588..c42df3c54 100644
--- a/src/newgrf_station.h
+++ b/src/newgrf_station.h
@@ -47,7 +47,13 @@ typedef byte *StationLayout;
/** Station specification. */
struct StationSpec {
- GRFFilePropsBase<0> grf_prop; ///< Properties related the the grf file
+ /**
+ * Properties related the the grf file.
+ * NUM_CARGO real cargo plus three pseudo cargo sprite groups.
+ * Used for obtaining the sprite offset of custom sprites, and for
+ * evaluating callbacks.
+ */
+ GRFFilePropsBase<NUM_CARGO + 3> grf_prop;
StationClassID cls_id; ///< The class to which this spec belongs.
StringID name; ///< Name of this station.
@@ -99,13 +105,6 @@ struct StationSpec {
uint8 anim_status;
uint8 anim_speed;
uint16 anim_triggers;
-
- /**
- * NUM_CARGO real cargo plus three pseudo cargo sprite groups.
- * Used for obtaining the sprite offset of custom sprites, and for
- * evaluating callbacks.
- */
- const struct SpriteGroup *spritegroup[NUM_CARGO + 3];
};
/** Struct containing information relating to station classes. */