EMI: Allow nil X, Y and Z values in SetActorHead.

This fixes Deadeye Dave's animation in pop.
This commit is contained in:
Joni Vähämäki 2014-07-15 18:13:30 +03:00
parent b80dea5a90
commit 8316549020

View File

@ -937,7 +937,7 @@ void Lua_V2::SetActorHead() {
if (!actor)
return;
if (lua_isstring(jointObj) && lua_isnumber(xObj) && lua_isnumber(yObj) && lua_isnumber(zObj)) {
if (lua_isstring(jointObj)) {
const char *joint = lua_getstring(jointObj);
Math::Vector3d offset;
offset.x() = lua_getnumber(xObj);