Removed unused boost header, fixed compiling with new luabind

Fixed TryFinishingBlow attempting to return by parameter reference.
The new luabind fails with a by_reference to by_value check. Using
a pointer accomplishes the same goal, but bypasses this issue.
This commit is contained in:
Adam Martin
2019-02-02 00:08:39 -06:00
parent 26eb4fb6e0
commit 5f23a72a16
5 changed files with 12 additions and 13 deletions
+3 -3
View File
@@ -2141,9 +2141,9 @@ bool Lua_Mob::IsBerserk() {
return self->IsBerserk();
}
bool Lua_Mob::TryFinishingBlow(Lua_Mob defender, int &damage) {
bool Lua_Mob::TryFinishingBlow(Lua_Mob defender, int *damage) {
Lua_Safe_Call_Bool();
return self->TryFinishingBlow(defender, damage);
return self->TryFinishingBlow(defender, *damage);
}
int Lua_Mob::GetBodyType()
@@ -2540,7 +2540,7 @@ luabind::scope lua_register_mob() {
.def("AttackAnimation", &Lua_Mob::AttackAnimation)
.def("GetWeaponDamage", &Lua_Mob::GetWeaponDamage)
.def("IsBerserk", &Lua_Mob::IsBerserk)
.def("TryFinishingBlow", &Lua_Mob::TryFinishingBlow)
.def("TryFinishingBlow", (bool(Lua_Mob::*)(int*))&Lua_Mob::TryFinishingBlow)
.def("GetBodyType", &Lua_Mob::GetBodyType)
.def("GetOrigBodyType", &Lua_Mob::GetOrigBodyType)
.def("CheckNumHitsRemaining", &Lua_Mob::CheckNumHitsRemaining);