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

@@ -97,8 +97,8 @@ bool BedTile::use(Level* level, int x, int y, int z,
if (isOccupied(data)) {
std::shared_ptr<Player> sleepingPlayer = nullptr;
AUTO_VAR(itEnd, level->players.end());
for (AUTO_VAR(it, level->players.begin()); it != itEnd; it++) {
auto itEnd = level->players.end();
for (auto it = level->players.begin(); it != itEnd; it++) {
std::shared_ptr<Player> p = *it;
if (p->isSleeping()) {
Pos pos = p->bedPosition;