From 4cfe1361fff6223d11a25cefd74af7a51b7d57bd Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 21 Apr 2018 18:20:49 +0200 Subject: Hide game and interface behind a pimpl. --- src/game/units.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/units.cpp') diff --git a/src/game/units.cpp b/src/game/units.cpp index 2b3b081..828ca6b 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -102,7 +102,7 @@ void unit_t::say(std::string str, bool on_interface) say_time = game->now; if (on_interface) - game->interface->print(name + ": " + str); + game->interface.print(name + ": " + str); } bool unit_t::keep_moving(double speed) @@ -220,11 +220,11 @@ void unit_t::die(unit_t *killer) case UNIT_SOLDIER: case UNIT_SCIENTIST: case UNIT_SPIDER: - game->interface->print(name + " " + text::get(text::UNIT_DEATH) + "."); + game->interface.print(name + " " + text::get(text::UNIT_DEATH) + "."); break; default: - game->interface->print(name + " " + text::get(text::UNIT_DESTRUCTION) + "."); + game->interface.print(name + " " + text::get(text::UNIT_DESTRUCTION) + "."); break; } -- cgit