summaryrefslogtreecommitdiff
path: root/src/game/units.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r--src/game/units.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp
index 5ee626b..735ed89 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -95,11 +95,13 @@ void unit_t::render_to(render::state_t *render)
}
}
-void unit_t::say(std::string str)
+void unit_t::say(std::string str, bool on_interface)
{
say_text = str;
say_time = game->now;
- game->interface->print(name + ": " + str);
+
+ if (on_interface)
+ game->interface->print(name + ": " + str);
}
bool unit_t::keep_moving(double speed)