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 | b3efec2e7d6ca583b3477ef3407844093a216a38 (patch) | |
tree | 2fa52d1955fc03be8152cb9d7b298bfce4b80664 /src/cargotype.h | |
parent | dfa3c0aae1b5918588e96777fe5c108301810717 (diff) | |
download | openttd-b3efec2e7d6ca583b3477ef3407844093a216a38.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; |