refactor: expand AUTO_VAR macro

This commit is contained in:
Tropical
2026-03-29 23:59:05 -05:00
parent a330ecdcbb
commit e45151ae64
201 changed files with 1051 additions and 1055 deletions

View File

@@ -138,7 +138,7 @@ void TripWireTile::checkPressed(Level* level, int x, int y, int z) {
std::vector<std::shared_ptr<Entity> >* entities =
level->getEntities(nullptr, &offs_aabb);
if (!entities->empty()) {
for (AUTO_VAR(it, entities->begin()); it != entities->end(); ++it) {
for (auto it = entities->begin(); it != entities->end(); ++it) {
std::shared_ptr<Entity> e = *it;
if (!e->isIgnoringTileTriggers()) {
shouldBePressed = true;