From 23897a640b4d7a2190a61ddd8fcb9f09f30edd14 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Mon, 26 Nov 2018 13:52:49 +0100 Subject: [PATCH] Correct types --- Source/diablo.cpp | 2 +- Source/items.cpp | 4 ++-- Source/multi.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/diablo.cpp b/Source/diablo.cpp index c4859bf5e..548a27d82 100644 --- a/Source/diablo.cpp +++ b/Source/diablo.cpp @@ -203,7 +203,7 @@ void __fastcall run_game_loop(unsigned int uMsg) pfile_write_hero(); pfile_flush_W(); PaletteFadeOut(8); - SetCursor(0); + SetCursor(CURSOR_NONE); ClearScreenBuffer(); drawpanflag = 255; scrollrt_draw_game_screen(1); diff --git a/Source/items.cpp b/Source/items.cpp index 0ea8844af..34d266ce0 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -4177,9 +4177,9 @@ BOOLEAN __fastcall SmithItemOk(int i) BOOLEAN rv; // eax v1 = AllItemsList[i].itype; - rv = 1; + rv = TRUE; if (!v1 || v1 == ITYPE_GOLD || v1 == ITYPE_0E || v1 == ITYPE_STAFF || v1 == ITYPE_RING || v1 == ITYPE_AMULET) - rv = 0; + rv = FALSE; return rv; } diff --git a/Source/multi.cpp b/Source/multi.cpp index c677e620d..8bc65ec05 100644 --- a/Source/multi.cpp +++ b/Source/multi.cpp @@ -745,7 +745,7 @@ int __fastcall NetInit(int bSinglePlayer, int *pfExitProgram) a2.size = 16; memset(&UiData, 0, 0x50u); UiData.size = 80; - UiData.parentwindow = SDrawGetFrameWindow(0); + UiData.parentwindow = SDrawGetFrameWindow(NULL); UiData.artcallback = (void(__cdecl *)())UiArtCallback; UiData.createcallback = (void(__cdecl *)())UiCreateGameCallback; UiData.drawdesccallback = (void(__cdecl *)())UiDrawDescCallback;