#include "screen.h"
#include "worldmap.h"
#include "resources.h"
+#include "texture.h"
+#include "tile.h"
int main(int argc, char * argv[])
{
st_menu();
loadshared();
- if (launch_worldmap_mode)
+ if (launch_leveleditor_mode && level_startup_file)
{
- WorldMapNS::WorldMap worldmap;
- worldmap.display();
+ leveleditor(level_startup_file);
}
else if (level_startup_file)
{
updatescreen();
unloadshared();
+ st_general_free();
+ TileManager::destroy_instance();
+#ifdef DEBUG
+ Surface::debug_check();
+#endif
st_shutdown();
return 0;