mirror of
https://github.com/ZDoom/zdbsp.git
synced 2024-11-24 12:51:24 +00:00
Merge pull request #2 from Blzut3/master
Fix Raspberry Pi node building issue
This commit is contained in:
commit
7736ffd1b9
1 changed files with 2 additions and 1 deletions
3
main.cpp
3
main.cpp
|
@ -688,7 +688,8 @@ angle_t PointToAngle (fixed_t x, fixed_t y)
|
|||
double ang = atan2 (double(y), double(x));
|
||||
const double rad2bam = double(1<<30) / M_PI;
|
||||
double dbam = ang * rad2bam;
|
||||
return angle_t(dbam) << 1;
|
||||
// Convert to signed first since negative double to unsigned is undefined.
|
||||
return angle_t(int(dbam)) << 1;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue