Skip to content
Snippets Groups Projects
Commit 8297c756 authored by Ian Prins's avatar Ian Prins
Browse files

add a way for uistate to signal termination

parent db9d8cc3
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,9 @@ void MasterController::run() {
if (temp != currState) {
delete temp;
}
if (currState == NULL) {
break;
}
TCODSystem::checkForEvent(TCOD_EVENT_KEY_PRESS, &key, NULL);
floatCon->clear();
currState->draw(floatCon);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment