fix sound origin for huge levels (taken from PrBoom+) (#1815)

This commit is contained in:
Roman Fomin 2024-08-02 19:37:39 +07:00 committed by GitHub
parent 1a3addd0d9
commit b2ee08b2aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1297,10 +1297,10 @@ int P_GroupLines (void)
sector->lines -= sector->linecount; sector->lines -= sector->linecount;
// set the degenmobj_t to the middle of the bounding box // set the degenmobj_t to the middle of the bounding box
sector->soundorg.x = (sector->blockbox[BOXRIGHT] + sector->soundorg.x =
sector->blockbox[BOXLEFT])/2; sector->blockbox[BOXRIGHT] / 2 + sector->blockbox[BOXLEFT] / 2;
sector->soundorg.y = (sector->blockbox[BOXTOP] + sector->soundorg.y =
sector->blockbox[BOXBOTTOM])/2; sector->blockbox[BOXTOP] / 2 + sector->blockbox[BOXBOTTOM] / 2;
sector->soundorg.thinker.function.p1 = (actionf_p1)P_DegenMobjThinker; sector->soundorg.thinker.function.p1 = (actionf_p1)P_DegenMobjThinker;