mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 03:12:00 -04:00
fix sound origin for huge levels (taken from PrBoom+) (#1815)
This commit is contained in:
parent
1a3addd0d9
commit
b2ee08b2aa
@ -1297,10 +1297,10 @@ int P_GroupLines (void)
|
||||
sector->lines -= sector->linecount;
|
||||
|
||||
// set the degenmobj_t to the middle of the bounding box
|
||||
sector->soundorg.x = (sector->blockbox[BOXRIGHT] +
|
||||
sector->blockbox[BOXLEFT])/2;
|
||||
sector->soundorg.y = (sector->blockbox[BOXTOP] +
|
||||
sector->blockbox[BOXBOTTOM])/2;
|
||||
sector->soundorg.x =
|
||||
sector->blockbox[BOXRIGHT] / 2 + sector->blockbox[BOXLEFT] / 2;
|
||||
sector->soundorg.y =
|
||||
sector->blockbox[BOXTOP] / 2 + sector->blockbox[BOXBOTTOM] / 2;
|
||||
|
||||
sector->soundorg.thinker.function.p1 = (actionf_p1)P_DegenMobjThinker;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user