From 0ec38ad0f8f27df9a8ad5dcb404a4ef620b56e11 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 9 Jul 2020 03:00:48 -0700 Subject: [PATCH] Get rid of unnecessary roomname logic Just set the map roomname to the roomname of the room. It's completely redundant to set the roomname to an empty string and check if the roomname of the room is empty. --- desktop_version/src/Map.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/desktop_version/src/Map.cpp b/desktop_version/src/Map.cpp index 9150c226..888e88af 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -1677,10 +1677,7 @@ void mapclass::loadlevel(int rx, int ry) } } - roomname=""; - if(room.roomname!=""){ - roomname=room.roomname; - } + roomname = room.roomname; extrarow = 1; const int* tmap = ed.loadlevel(rx, ry); SDL_memcpy(contents, tmap, sizeof(contents));