Differences From Artifact [e376d54115]:
- File src/entities.m — part of check-in [5b7b7d2fc5] at 2025-03-24 22:14:24 on branch trunk — Convert player into a class (user: js, size: 7749) [annotate] [blame] [check-ins using]
To Artifact [945da2b6da]:
- File
src/entities.m
— part of check-in
[75e920ae30]
at
2025-03-29 14:25:43
on branch trunk
— Switch from clang-format to manual formatting
clang-format does too many weird things. (user: js, size: 7753) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
309 310 311 312 313 314 315 | checkitems() { Player *player1 = Player.player1; if (editmode) return; | | | 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 | checkitems() { Player *player1 = Player.player1; if (editmode) return; [ents enumerateObjectsUsingBlock: ^ (Entity *e, size_t i, bool *stop) { if (e.type == NOTUSED) return; if (!e.spawned && e.type != TELEPORT && e.type != JUMPPAD) return; if (OUTBORD(e.x, e.y)) |
︙ | ︙ | |||
344 345 346 347 348 349 350 | } } // puts items in network stream and also spawns them locally void putitems(unsigned char **p) { | | | 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | } } // puts items in network stream and also spawns them locally void putitems(unsigned char **p) { [ents enumerateObjectsUsingBlock: ^ (Entity *e, size_t i, bool *stop) { if ((e.type >= I_SHELLS && e.type <= I_QUAD) || e.type == CARROT) { putint(p, i); e.spawned = true; } }]; } |
︙ | ︙ |