From cf17cffb264352b181319adb5b439d4fbfc83642 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 27 Jan 2022 18:35:12 +0100 Subject: [PATCH] - missed one place where wall coordinates are set from map loading. --- source/core/maploader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/core/maploader.cpp b/source/core/maploader.cpp index edda7ba19..237af13b7 100644 --- a/source/core/maploader.cpp +++ b/source/core/maploader.cpp @@ -652,8 +652,10 @@ static void P_LoadBloodMapWalls(uint8_t* data, size_t len, TArray& lwa // only copy what we need to draw the map preview. auto pWall = &lwalls[i]; - pWall->__wall_int_pos.X = LittleLong(load.x); - pWall->__wall_int_pos.Y = LittleLong(load.y); + + int x = LittleLong(load.x); + int y = LittleLong(load.y); + pWall->setPosFromLoad(x, y); pWall->point2 = LittleShort(load.point2); pWall->nextwall = LittleShort(load.nextwall); pWall->nextsector = LittleShort(load.nextsector);