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

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;
}

View File

@ -1522,10 +1522,10 @@ void QuestManager::ding() {
}
void QuestManager::rebind(int zoneid, float x, float y, float z) {
void QuestManager::rebind(int zoneid, const xyz_location& location) {
QuestManagerCurrentQuestVars();
if(initiator && initiator->IsClient()) {
initiator->SetBindPoint(zoneid, 0, xyz_location(x, y, z));
initiator->SetBindPoint(zoneid, 0, location);
}
}

View File

@ -131,7 +131,7 @@ public:
void targlobal(const char *varname, const char *value, const char *duration, int npcid, int charid, int zoneid);
void delglobal(const char *varname);
void ding();
void rebind(int zoneid, float x, float y, float z);
void rebind(int zoneid, const xyz_location& location);
void start(int wp);
void stop();
void pause(int duration);