error message for out-of-bounds teleport

This commit is contained in:
2025-08-31 17:05:27 -05:00
parent 9ff618bf21
commit bd11f56f71

View File

@@ -1344,6 +1344,10 @@ void out_move_party(short x,short y) {
// mode - 0=full teleport flash 1=no teleport flash 2=only fade flash 3=only arrival flash
void teleport_party(short x,short y,short mode) {
if(!univ.town->is_on_map(loc(x,y))){
showError("The scenario tried to teleport you out of bounds!");
return;
}
// TODO: Teleport sound? (Sound 10)
location l;
bool fadeIn = false, fadeOut = false;