From e46b0d131ae19194a0ee16437c8014aec719c643 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Sun, 4 Aug 2024 22:32:41 +0200 Subject: [PATCH] Fix characters at the wrong level --- src/mapgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapgen.cpp b/src/mapgen.cpp index e3cc92f746572..0c99ae296b5a9 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -7161,7 +7161,7 @@ void map::rotate( int turns, const bool setpos_safe ) // Then we place it back from scratch // It could be rewritten to utilize the fact that rotation shouldn't cross overmaps shared_ptr_fast npc_ptr = overmap_buffer.remove_npc( np.getID() ); - np.spawn_at_precise( tripoint_abs_ms( getabs( tripoint( new_pos, abs_sub.z() ) ) ) ); + np.spawn_at_precise( tripoint_abs_ms( getabs( tripoint( new_pos, sq.z ) ) ) ); overmap_buffer.insert_npc( npc_ptr ); } }