refactor: convert Tile::tlsIdxShape to thread_local

This commit is contained in:
Tropical
2026-03-25 14:20:08 -05:00
parent 625ce97385
commit 4a1fb94600
11 changed files with 30 additions and 80 deletions

View File

@@ -260,8 +260,7 @@ void ButtonTile::checkPressed(Level* level, int x, int y, int z) {
bool shouldBePressed;
updateShape(data);
Tile::ThreadStorage* tls =
(Tile::ThreadStorage*)TlsGetValue(Tile::tlsIdxShape);
Tile::ThreadStorage* tls = m_threadShape;
std::vector<std::shared_ptr<Entity> >* entities = level->getEntitiesOfClass(
typeid(Arrow), AABB::newTemp(x + tls->xx0, y + tls->yy0, z + tls->zz0,
x + tls->xx1, y + tls->yy1, z + tls->zz1));