Optimizations

This solves an FPS problem when 10 or more entities take damage
This commit is contained in:
GabsPuNs
2026-05-28 22:22:22 -04:00
parent 338604d7c5
commit 8dececbf90
11 changed files with 230 additions and 480 deletions

View File

@@ -56,13 +56,13 @@ void RecordPlayerTile::dropRecording(Level *level, int x, int y, int z)
if( rte == nullptr ) return;
int oldRecord = rte->record;
if (oldRecord == 0) return;
if (oldRecord == nullptr) return;
level->levelEvent(LevelEvent::SOUND_PLAY_RECORDING, x, y, z, 0);
// 4J-PB- the level event will play the music
//level->playStreamingMusic(L"", x, y, z);
rte->record = 0;
rte->record = nullptr;
rte->setChanged();
level->setData(x, y, z, 0);