mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-30 23:44:28 -04:00
first round of constants cleanup (#3021)
* first round of constants cleanup * move m_PI_D definition * remove compatibility comment * add future version of angle subtracting with/without cast * whitespace change to run builds again
This commit is contained in:
@@ -117,7 +117,7 @@ void dKyr_lenzflare_move() {
|
||||
dKyr_get_vectle_calc(¢er, &proj, &vect);
|
||||
|
||||
lenz_packet->field_0x94 = cM_atan2s(vect.x, vect.y);
|
||||
lenz_packet->field_0x94 *= 0.0054931640625f; // Maybe 45 / 8192
|
||||
lenz_packet->field_0x94 *= S2DEG_CONSTANT; // convert from short angle to degrees
|
||||
lenz_packet->field_0x94 += 180.0f;
|
||||
|
||||
dKyr_get_vectle_calc(&camera->lookat.eye, &camera->lookat.center, &camFwd);
|
||||
|
||||
Reference in New Issue
Block a user