summaryrefslogtreecommitdiff
path: root/src/game/GameModel.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-14 12:06:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-14 12:06:10 (GMT)
commit4f3e03e3176789ba095b714d1cca214409b27c06 (patch)
treec4cc858b962121b82e3bb6a38dfd7ace3c8795e2 /src/game/GameModel.cpp
parentc877e445b9cc9176415924acc07e96308ef1c7a3 (diff)
downloadpowder-4f3e03e3176789ba095b714d1cca214409b27c06.zip
powder-4f3e03e3176789ba095b714d1cca214409b27c06.tar.gz
Update gitignore, show votes correctly, fixes #97
Diffstat (limited to 'src/game/GameModel.cpp')
-rw-r--r--src/game/GameModel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp
index c897877..9505397 100644
--- a/src/game/GameModel.cpp
+++ b/src/game/GameModel.cpp
@@ -263,6 +263,10 @@ void GameModel::SetVote(int direction)
currentSave->vote = direction;
notifySaveChanged();
}
+ else
+ {
+ throw GameModelException("Could not vote: "+Client::Ref().GetLastError());
+ }
}
}