mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-08 02:53:20 +00:00
Optimizations
This solves an FPS problem when 10 or more entities take damage
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user