Fix game build and Windows build
This commit is contained in:
@@ -176,7 +176,7 @@ bool cCurTown::prep_talk(short which) {
|
||||
|
||||
void cCurTown::prep_arena() {
|
||||
if(arena != nullptr) delete arena;
|
||||
arena = new cMedTown(univ.scenario, false);
|
||||
arena = new cMedTown(univ.scenario);
|
||||
}
|
||||
|
||||
cCurTown::~cCurTown() {
|
||||
|
@@ -198,11 +198,7 @@ LRESULT CALLBACK menuProc(HWND handle, UINT message, WPARAM wParam, LPARAM lPara
|
||||
}
|
||||
if(message == WM_COMMAND) {
|
||||
int cmd = LOWORD(wParam);
|
||||
if(cmd >= 10000 && cmd < 20000) { // Item menus
|
||||
handle_item_menu(cmd - 10000);
|
||||
} else if(cmd >= 20000 && cmd < 30000) { // Monster menus
|
||||
handle_monst_menu(cmd - 20000);
|
||||
} else handle_menu_choice(menuChoices[cmd]);
|
||||
handle_menu_choice(menuChoices[cmd]);
|
||||
} else if(message == WM_SETCURSOR) {
|
||||
// Windows resets the cursor to an arrow whenever the mouse moves, unless we do this.
|
||||
// Note: By handling this message, sf::Window::setMouseCursorVisible() will NOT work.
|
||||
|
Reference in New Issue
Block a user