Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-19 19:44:13 +0000
committerStijn Buys <ingar@osirion.org>2010-09-19 19:44:13 +0000
commitcc18095cded14f5e7e3f049e47fca2224134b647 (patch)
tree2a057f4836925083a19988d571dc0664925c9e48 /src/core/info.cc
parentbadfb31888a6bd62e0a019b3f3dec517df4121ec (diff)
text rendering cleanups, inventory capacity & cargo volume
Diffstat (limited to 'src/core/info.cc')
-rw-r--r--src/core/info.cc5
1 files changed, 5 insertions, 0 deletions
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;