summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-01-27 05:52:06 +0100
committerPetr Mrázek2012-01-27 05:52:06 +0100
commit66115070844f3bc1ae3f9142e43f7c110aa18159 (patch)
tree661a3c27bcdc105ea890e117dfb1f3790e5a0c0c /main.cpp
parent92627e39cb3502812cd5a131716d3d1da8ef625a (diff)
downloadstonesense-66115070844f3bc1ae3f9142e43f7c110aa18159.tar.gz
stonesense-66115070844f3bc1ae3f9142e43f7c110aa18159.tar.bz2
stonesense-66115070844f3bc1ae3f9142e43f7c110aa18159.tar.xz
Major stonesense fixage.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 15eb9f3..6f4e61c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -302,7 +302,6 @@ return 0;
static void main_loop(ALLEGRO_DISPLAY * display, ALLEGRO_EVENT_QUEUE *queue, ALLEGRO_THREAD * thred, DFHack::Console & con, DFHack::Core * core)
{
ALLEGRO_EVENT event;
- DFHack::Maps * maps = core->getMaps();
DFHack::t_gamemodes game_mode;
while (!al_get_thread_should_stop(thred))
{
@@ -313,7 +312,7 @@ static void main_loop(ALLEGRO_DISPLAY * display, ALLEGRO_EVENT_QUEUE *queue, ALL
{
DrawSpriteIndexOverlay(config.currentSpriteOverlay);
}
- else if(!maps->Start())
+ else if(!Maps::IsValid())
{
drawcredits();
}