mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Reduce number of recursively included headers
This should improve compilation speed. Things changed: * Prefer forward-declarations in headers. * Move header-includes out of headers if possible. * Move some functions definitions out of headers. * Put some member variables into unique_ptrs (see Client).
This commit is contained in:
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include "luaentity_sao.h"
|
||||
#include "collision.h"
|
||||
#include "constants.h"
|
||||
#include "inventory.h"
|
||||
#include "player_sao.h"
|
||||
#include "scripting_server.h"
|
||||
#include "server.h"
|
||||
@@ -409,7 +410,7 @@ void LuaEntitySAO::setHP(s32 hp, const PlayerHPChangeReason &reason)
|
||||
m_env->getScriptIface()->luaentity_on_death(m_id, killer);
|
||||
}
|
||||
markForRemoval();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
u16 LuaEntitySAO::getHP() const
|
||||
|
Reference in New Issue
Block a user