mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- fixed incorrect center point calculation.
This commit is contained in:
parent
58002f7f96
commit
7404142edf
1 changed files with 2 additions and 2 deletions
|
@ -3205,8 +3205,8 @@ static void P_GroupLines (bool buildmap)
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the center to the middle of the bounding box
|
// set the center to the middle of the bounding box
|
||||||
sector->centerspot.X = (bbox.Right() + bbox.Left()/2);
|
sector->centerspot.X = (bbox.Right() + bbox.Left()) / 2;
|
||||||
sector->centerspot.Y = (bbox.Top() + bbox.Bottom()/2);
|
sector->centerspot.Y = (bbox.Top() + bbox.Bottom()) / 2;
|
||||||
|
|
||||||
// For triangular sectors the above does not calculate good points unless the longest of the triangle's lines is perfectly horizontal and vertical
|
// For triangular sectors the above does not calculate good points unless the longest of the triangle's lines is perfectly horizontal and vertical
|
||||||
if (sector->linecount == 3)
|
if (sector->linecount == 3)
|
||||||
|
|
Loading…
Reference in a new issue