Skip calling handle_ambience() if there is no client assigned

Fixes potential CPU usage issue for EVERY single mob having that call
This commit is contained in:
Rykka
2020-08-04 16:11:17 -04:00
parent 7c5c1d5fe9
commit 5344b97069

View File

@@ -46,8 +46,8 @@
//Check if we're on fire
handle_fire()
// Handle re-running ambience to mobs if they've remained in an area.
handle_ambience()
if(client) // Handle re-running ambience to mobs if they've remained in an area, AND have an active client assigned to them.
handle_ambience()
//stuff in the stomach
//handle_stomach() //VOREStation Code