From 57a6bfcdcd1c03d9e355ec8d36872fcc51629a3c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 3 Mar 2021 13:26:58 +0100 Subject: [PATCH] - Blood: fixed typo in map loader that overwrote the floor y panning offset with its fractional part. --- source/games/blood/src/db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/blood/src/db.cpp b/source/games/blood/src/db.cpp index 20d48d82f..e1be1916d 100644 --- a/source/games/blood/src/db.cpp +++ b/source/games/blood/src/db.cpp @@ -738,7 +738,7 @@ void dbLoadMap(const char *pPath, int *pX, int *pY, int *pZ, short *pAngle, shor pSector->floorxpan_ += bitReader.readUnsigned(8) / 256.f; pXSector->damageType = bitReader.readUnsigned(3); pXSector->floorpal = bitReader.readUnsigned(4); - pSector->floorypan_ = bitReader.readUnsigned(8) / 256.f; + pSector->floorypan_ += bitReader.readUnsigned(8) / 256.f; pXSector->locked = bitReader.readUnsigned(1); pXSector->windVel = bitReader.readUnsigned(10); pXSector->windAng = bitReader.readUnsigned(11);