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>2011-02-04 13:23:05 +0000
committerStijn Buys <ingar@osirion.org>2011-02-04 13:23:05 +0000
commita69521970793424754421c8a5fba2eb465e817e6 (patch)
treef44f178a27f621f0f11ed5959418d83ee399ffcd /src/dedicated
parent7129e31075e021112ba6a859af29513e69671626 (diff)
Made time(), timestamp() and related methods non-virtual, corrects a crash when
the dedicated server quits.
Diffstat (limited to 'src/dedicated')
-rw-r--r--src/dedicated/console.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dedicated/console.cc b/src/dedicated/console.cc
index 2c4c0da..c2b71c0 100644
--- a/src/dedicated/console.cc
+++ b/src/dedicated/console.cc
@@ -475,9 +475,9 @@ void Console::frame()
if (input_updated) {
draw_input();
}
- if (roundf(core::application()->time()) != prev_time) {
+ if (core::game() && (roundf(core::game()->time()) != prev_time)) {
draw_status();
- prev_time = roundf(core::application()->time());
+ prev_time = roundf(core::game()->time());
input_updated = true;
}
if (input_updated) {