summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-23 11:13:06 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-23 11:13:06 +0000
commitb5ce99c52d1ce36f56431652f7fcc67eb9d5bf6d (patch)
treed27187f237acd49e48c7d3262d73d9753e580ac3
parentc77f77304aea9b7549db4f7a39dac361af2a671a (diff)
downloadopenttd-b5ce99c52d1ce36f56431652f7fcc67eb9d5bf6d.tar.xz
(svn r4540) - NewGRF: don't treat integer values as boolean.
-rw-r--r--newgrf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newgrf.c b/newgrf.c
index a8ab78f20..5dace18e7 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -865,7 +865,7 @@ static bool StationChangeInfo(uint stid, int numinfo, int prop, byte **bufp, int
int seq_count = 0;
dts->ground_sprite = sdts->ground_sprite;
- if (!dts->ground_sprite) {
+ if (dts->ground_sprite == 0) {
static const DrawTileSeqStruct empty = {0x80, 0, 0, 0, 0, 0, 0};
dts->seq = &empty;
continue;
@@ -1452,7 +1452,7 @@ static void NewSpriteGroup(byte *buf, int len)
byte num_loading = grf_load_byte(&buf);
uint i;
- if (!_cur_grffile->spriteset_start) {
+ if (_cur_grffile->spriteset_start == 0) {
grfmsg(GMS_ERROR, "NewSpriteGroup: No sprite set to work on! Skipping.");
return;
}
@@ -1611,7 +1611,7 @@ static void NewVehicle_SpriteGroupMapping(byte *buf, int len)
// 03 00 01 19 01 00 00 00 00 - this is missing one 00 at the end,
// what should we exactly do with that? --pasky
- if (!_cur_grffile->spriteset_start || !_cur_grffile->spritegroups) {
+ if (_cur_grffile->spriteset_start == 0 || _cur_grffile->spritegroups == 0) {
grfmsg(GMS_WARN, "VehicleMapSpriteGroup: No sprite set to work on! Skipping.");
return;
}