Differences From Artifact [e2809031d4]:
- File
src/clientgame.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: 9899) [annotate] [blame] [check-ins using]
To Artifact [8ff39fb916]:
- File src/clientgame.m — part of check-in [85566b261d] at 2025-03-23 14:17:30 on branch trunk — Adjust to ObjFW changes (user: js, size: 9900) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
199 200 201 202 203 204 205 | entinmap(DynamicEntity *d) { // try max 100 times for (int i = 0; i < 100; i++) { float dx = (rnd(21) - 10) / 10.0f * i; // increasing distance float dy = (rnd(21) - 10) / 10.0f * i; OFVector3D old = d.origin; | | | 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | entinmap(DynamicEntity *d) { // try max 100 times for (int i = 0; i < 100; i++) { float dx = (rnd(21) - 10) / 10.0f * i; // increasing distance float dy = (rnd(21) - 10) / 10.0f * i; OFVector3D old = d.origin; d.origin = OFAddVectors3D(d.origin, OFMakeVector3D(dx, dy, 0)); if (collide(d, true, 0, 0)) return; d.origin = old; } conoutf(@"can't find entity spawn spot! (%d, %d)", (int)d.origin.x, (int)d.origin.y); // leave ent at original pos, possibly stuck |
︙ | ︙ |