diff --git a/desktop_version/src/Map.cpp b/desktop_version/src/Map.cpp index 2c393b6f..2112fec2 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -1144,6 +1144,7 @@ void mapclass::loadlevel(int rx, int ry) obj.vertplatforms = false; obj.horplatforms = false; roomname = ""; + hiddenname = ""; background = 1; warpx = false; warpy = false; @@ -1283,6 +1284,15 @@ void mapclass::loadlevel(int rx, int ry) roomtexton = true; roomtext = std::vector(otherlevel.roomtext); } + + if (game.roomx >= 102 && game.roomx <= 104 && game.roomy >= 110 && game.roomy <= 111) + { + hiddenname = "The Ship"; + } + else + { + hiddenname = "Dimension VVVVVV"; + } break; case 2: //The Lab contents = lablevel.loadlevel(rx, ry); diff --git a/desktop_version/src/Map.h b/desktop_version/src/Map.h index 1ed4cc48..5ef7e64d 100644 --- a/desktop_version/src/Map.h +++ b/desktop_version/src/Map.h @@ -94,6 +94,7 @@ public: std::string roomname; + std::string hiddenname; //Special tower stuff bool towermode; diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 83ed12a2..4bbc65af 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -1631,17 +1631,9 @@ void maprender() //draw screen alliteration //Roomname: - int temp = map.area(game.roomx, game.roomy); - if (temp < 2 && !map.custommode && graphics.fademode==0) + if (map.hiddenname != "") { - if (game.roomx >= 102 && game.roomx <= 104 && game.roomy >= 110 && game.roomy <= 111) - { - graphics.Print(5, 2, "The Ship", 196, 196, 255 - help.glow, true); - } - else - { - graphics.Print(5, 2, "Dimension VVVVVV", 196, 196, 255 - help.glow, true); - } + graphics.Print(5, 2, map.hiddenname, 196, 196, 255 - help.glow, true); } else { @@ -2402,14 +2394,7 @@ void teleporterrender() int temp = map.area(game.roomx, game.roomy); if (temp < 2 && !map.custommode && graphics.fademode==0) { - if (game.roomx >= 102 && game.roomx <= 104 && game.roomy >= 110 && game.roomy <= 111) - { - graphics.Print(5, 2, "The Ship", 196, 196, 255 - help.glow, true); - } - else - { - graphics.Print(5, 2, "Dimension VVVVVV", 196, 196, 255 - help.glow, true); - } + graphics.Print(5, 2, map.hiddenname, 196, 196, 255 - help.glow, true); } else {