diff options
author | peter1138 <peter1138@openttd.org> | 2007-02-23 09:56:20 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-02-23 09:56:20 +0000 |
commit | 7e73413709b3f830d83338421298af5dc20581db (patch) | |
tree | 2fa52d1955fc03be8152cb9d7b298bfce4b80664 /src/cargotype.h | |
parent | 0ed4b64e649349f695a1942e0fa09b8b564e1774 (diff) | |
download | openttd-7e73413709b3f830d83338421298af5dc20581db.tar.xz |
(svn r8858) -Codechange: Replace magic number test with class method for determining if a cargo is valid/active.
Diffstat (limited to 'src/cargotype.h')
-rw-r--r-- | src/cargotype.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cargotype.h b/src/cargotype.h index 65a5797cf..684e463ab 100644 --- a/src/cargotype.h +++ b/src/cargotype.h @@ -31,6 +31,8 @@ typedef struct CargoSpec { SpriteID sprite; uint16 classes; + + bool IsValid() const; } CargoSpec; |