1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 18:19:43 +01:00

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.
This commit is contained in:
Misa 2020-07-09 03:00:48 -07:00 committed by Ethan Lee
parent 2558cccd40
commit 0ec38ad0f8

View file

@ -1677,10 +1677,7 @@ void mapclass::loadlevel(int rx, int ry)
} }
} }
roomname="";
if(room.roomname!=""){
roomname = room.roomname; roomname = room.roomname;
}
extrarow = 1; extrarow = 1;
const int* tmap = ed.loadlevel(rx, ry); const int* tmap = ed.loadlevel(rx, ry);
SDL_memcpy(contents, tmap, sizeof(contents)); SDL_memcpy(contents, tmap, sizeof(contents));