summaryrefslogtreecommitdiff
path: root/src/cargotype.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-12-05 16:00:58 +0000
committeralberth <alberth@openttd.org>2009-12-05 16:00:58 +0000
commitc38f3ce380930c381464b1c39dc351061587b34f (patch)
tree6f42abae63c5bf7aa8b3fc9a9fb6bc51292c85c3 /src/cargotype.h
parent1e7403d372b7d967d7ecab848fa7fc74358d8820 (diff)
downloadopenttd-c38f3ce380930c381464b1c39dc351061587b34f.tar.xz
(svn r18410) -Codechange: Move GetCargoSprite() to CargoSpec::GetCargoIcon().
Diffstat (limited to 'src/cargotype.h')
-rw-r--r--src/cargotype.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cargotype.h b/src/cargotype.h
index ef7e76ee8..f8ecdbdcc 100644
--- a/src/cargotype.h
+++ b/src/cargotype.h
@@ -113,6 +113,8 @@ struct CargoSpec {
return &CargoSpec::array[index];
}
+ SpriteID GetCargoIcon() const;
+
private:
static CargoSpec array[NUM_CARGO]; ///< Array holding all CargoSpecs
@@ -123,8 +125,6 @@ extern uint32 _cargo_mask;
/* Set up the default cargo types for the given landscape type */
void SetupCargoForClimate(LandscapeID l);
-/* Get the cargo icon for a given cargo ID */
-SpriteID GetCargoSprite(CargoID i);
/* Get the cargo ID with the cargo label */
CargoID GetCargoIDByLabel(CargoLabel cl);
CargoID GetCargoIDByBitnum(uint8 bitnum);