@ -1,8 +1,9 @@
#pragma once
#include <map>
#include <iostream>
#include "Crawler.h"
class Crawler;
INCLUDE_game
namespace States{
enum State{
@ -27,6 +28,7 @@ public:
throw;
}
STATE=states.at(newState);
game->camera.SetTarget(game->GetPlayer()->GetPos());
STATE->OnStateChange(prevState);
};
@ -642,9 +642,5 @@ std::pair<MenuType,std::string>Menu::GetMemoryLeakReportInfo(){
void Menu::CloseAllMenus(){
if(stack.size()<=0){
std::cout<<"WARNING! Trying to close out no menu?? Why are we doing this?"<<std::endl;
stack.clear();
@ -2,7 +2,7 @@
#define VERSION_MAJOR 0
#define VERSION_MINOR 2
#define VERSION_PATCH 1
#define VERSION_BUILD 2548
#define VERSION_BUILD 2559
#define stringify(a) stringify_(a)
#define stringify_(a) #a