Skip to content

Commit

Permalink
worldtest exits if it cannot load a map
Browse files Browse the repository at this point in the history
  • Loading branch information
jmglov committed Mar 25, 2011
1 parent e1e0e15 commit 870567b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/worldtest.cc
Expand Up @@ -150,6 +150,12 @@ class world_test : public adonthell::app
game_mgr.load (base::savegame::INITIAL_SAVE);
LOG(INFO) << " done!";

if (world::area_manager::get_map() == NULL)
{
LOG(ERROR) << "No map loaded, exiting";
return 1;
}

// set mapview to proper size
world::area_manager::get_mapview()->resize(gfx::screen::length(), gfx::screen::height());

Expand Down

0 comments on commit 870567b

Please sign in to comment.