rebind converted to xyz_location

This commit is contained in:
Arthur Ice
2014-12-02 10:56:02 -08:00
parent 7ce7af05f3
commit 9d6a89c65d
3 changed files with 5 additions and 7 deletions
+2 -4
View File
@@ -1321,11 +1321,9 @@ XS(XS__rebind)
Perl_croak(aTHX_ "Usage: rebind(zoneid, x, y, z)");
int zoneid = (int)SvIV(ST(0));
float x = (float)SvNV(ST(1));
float y = (float)SvNV(ST(2));
float z = (float)SvNV(ST(3));
auto location = xyz_location((float)SvNV(ST(1)),(float)SvNV(ST(2)),(float)SvNV(ST(3)));
quest_manager.rebind(zoneid, x, y, z);
quest_manager.rebind(zoneid, location);
XSRETURN_EMPTY;
}