From cc18095cded14f5e7e3f049e47fca2224134b647 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Sep 2010 19:44:13 +0000 Subject: text rendering cleanups, inventory capacity & cargo volume --- src/core/info.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/info.cc') diff --git a/src/core/info.cc b/src/core/info.cc index c331d91..16e68f5 100644 --- a/src/core/info.cc +++ b/src/core/info.cc @@ -67,6 +67,7 @@ Info::Info(const InfoType *type, const char *label) : Label(label) info_model = 0; info_timestamp = 0; info_price = 0; + info_volume = 0; } // client-side constructor, id is passed as param @@ -124,6 +125,10 @@ void Info::set_price(const long price) info_price = price; } +void Info::set_volume(const float volume) +{ + info_volume = volume; +} void Info::set_timestamp(const unsigned long timestamp) { info_timestamp = timestamp; -- cgit v1.2.3