mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
2558cccd40
commit
0ec38ad0f8
1 changed files with 1 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue