Overview
Comment: | Remove fast_f2nat |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
51fb59fc934df4829a82f7992f104355 |
User & Date: | js on 2025-03-23 17:45:28 |
Other Links: | manifest | tags |
Context
2025-03-23
| ||
19:40 | Clean up identifiers, use blocks for commands check-in: d7661be1b1 user: js tags: trunk | |
17:45 | Remove fast_f2nat check-in: 51fb59fc93 user: js tags: trunk | |
17:41 | Remove dotprod check-in: da90479adf user: js tags: trunk | |
Changes
Modified src/Monster.m from [8c481c4403] to [4c3ede25d7].
︙ | |||
194 195 196 197 198 199 200 | 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | - + | int steps = (int)(sqrt(dx * dx + dy * dy) / 0.9); if (!steps) return false; float x = lx; float y = ly; int i = 0; for (;;) { |
︙ |
Modified src/physics.m from [498044e3ca] to [5a011dd2ea].
︙ | |||
96 97 98 99 100 101 102 | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | - - - - + + + + | collide(DynamicEntity *d, bool spawn, float drop, float rise) { // figure out integer cube rectangle this entity covers in map const float fx1 = d.origin.x - d.radius; const float fy1 = d.origin.y - d.radius; const float fx2 = d.origin.x + d.radius; const float fy2 = d.origin.y + d.radius; |
︙ |
Modified src/tools.h from [0a7160063e] to [4adaa385b0].
︙ | |||
32 33 34 35 36 37 38 | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - - | rnd(i + 1); \ } #ifndef OF_WINDOWS # define __cdecl #endif |
︙ |
Modified src/worldlight.m from [78382b218b] to [38933acc1f].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | + - + - - - + - + | const int PRECBITS = 12; const float PRECF = 4096.0f; int x = (int)(lx * PRECF); int y = (int)(ly * PRECF); int l = light.attr2 << PRECBITS; int stepx = (int)(dx / (float)steps * PRECF); int stepy = (int)(dy / (float)steps * PRECF); // incorrect: light will fade quicker if near edge of the world |
︙ |
Modified src/worldocull.m from [504811d94d] to [1dcc5bb2a7].
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | + - - + + - + - - - - | 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; // try to avoid tracing ray if outside of frustrum |
︙ | |||
62 63 64 65 66 67 68 | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | - + | float sx = vx; float sy = vy; for (;;) { sx += dx; sy += dy; // 90% of time spend in this function is on this // line |
︙ | |||
179 180 181 182 183 184 185 | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | - - - + + + | l = ma(cx - vx, cy + csize - vy); } // E } else { h = ca(cx + csize - vx, cy - vy); l = ca(cx - vx, cy + csize - vy); } // H } |