Differences From Artifact [8d9314d707]:
- File src/worldocull.m — part of check-in [12cac9666a] at 2025-03-20 22:22:40 on branch trunk — Convert remaining files to pure Objective-C (user: js, size: 4538) [annotate] [blame] [check-ins using]
- File src/worldocull.mm — part of check-in [d2b3ff790f] at 2025-03-09 18:57:42 on branch trunk — Convert dynent to a class (user: js, size: 4538) [annotate] [blame] [check-ins using]
To Artifact [504811d94d]:
- File
src/worldocull.m
— part of check-in
[6b85eefc85]
at
2025-03-23 02:47:40
on branch trunk
— Remove loop[ijkl]
They confused clang-format a lot. (user: js, size: 4556) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
29 30 31 32 33 34 35 | odist = getvar(@"fog") * 1.5f; float apitch = (float)fabs(player1.pitch); float af = getvar(@"fov") / 2 + apitch / 1.5f + 3; float byaw = (player1.yaw - 90 + af) / 360 * PI2; float syaw = (player1.yaw - 90 - af) / 360 * PI2; | | < | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | odist = getvar(@"fog") * 1.5f; float apitch = (float)fabs(player1.pitch); float af = getvar(@"fov") / 2 + apitch / 1.5f + 3; float byaw = (player1.yaw - 90 + af) / 360 * PI2; float syaw = (player1.yaw - 90 - af) / 360 * PI2; for (int i = 0; i < NUMRAYS; i++) { float angle = i * PI2 / NUMRAYS; if ((apitch > 45 // must be bigger if fov>120 || (angle < byaw && angle > syaw) || (angle < byaw - PI2 && angle > syaw - PI2) || (angle < byaw + PI2 && angle > syaw + PI2)) && !OUTBORD(vx, vy) && !SOLID(S(fast_f2nat(vx), |
︙ | ︙ |