diff options
Diffstat (limited to 'frontend/cmd/search.cpp')
-rw-r--r-- | frontend/cmd/search.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/frontend/cmd/search.cpp b/frontend/cmd/search.cpp index f7fb528..c11c939 100644 --- a/frontend/cmd/search.cpp +++ b/frontend/cmd/search.cpp @@ -2,11 +2,12 @@ #include "backend/print.h" #include "backend/Location.h" +#include "backend/Dungeon.h" using namespace std; -FollowupAction GameController::cmd_search(string &) { - Location & location = this->player.get_location(); +void GameController::cmd_search(string &) { + Location & location = this->dungeon->get_player().get_location(); bool found = false; for (Object * object : location.get_hidden_objects()) { @@ -17,6 +18,7 @@ FollowupAction GameController::cmd_search(string &) { } if (!found) lprtf("Je hebt niks gevonden.\n"); - return FollowupAction::UPDATE; + + this->dungeon->update(); } |