diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-07-22 20:13:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-22 20:13:31 -0400 |
| commit | 96347ab5028b6ef8ed8f5901f7d16ad51ab99cd4 (patch) | |
| tree | 0eb673b76d240ac04a8805632c8fb4b4d47d71c5 /src/d/d_map.cpp | |
| parent | bf372802ca81f2c2eb5ae18a5908a2d84e1d3139 (diff) | |
Clean up angle constants and conversions (#1135)
* Add angle conversion constants and macros
* Replace angle literals with hex instead of decimal
Diffstat (limited to 'src/d/d_map.cpp')
| -rw-r--r-- | src/d/d_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/d/d_map.cpp b/src/d/d_map.cpp index 31ebe7e0..53b04578 100644 --- a/src/d/d_map.cpp +++ b/src/d/d_map.cpp @@ -1830,7 +1830,7 @@ void dMap_c::drawPointAgbCursor(f32 param_1, f32 param_2) { if (agbFlashCheck()) { mMapAGBCursorFlashFrmCnt++; mMapAGBCursorFlashFrmCnt = mMapAGBCursorFlashFrmCnt % 45; - f32 tmp = JMASSin(mMapAGBCursorFlashFrmCnt / 45.0f * 32768.0f) * JMASSin(mMapAGBCursorFlashFrmCnt / 45.0f * 32768.0f); + f32 tmp = JMASSin(mMapAGBCursorFlashFrmCnt / 45.0f * 0x8000) * JMASSin(mMapAGBCursorFlashFrmCnt / 45.0f * 0x8000); color.r = 0; color.g = tmp * 175.0f + 80.0f; color.b = 0; |
