mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-23 06:32:28 +00:00
True fix for $client->UpdateTaskActivity(TaskID, ActivityID, Count, [ignore_quest_update])
This commit is contained in:
parent
85a27cdd74
commit
9419bc8d54
@ -5053,20 +5053,24 @@ XS(XS_Client_GetSpellBookSlotBySpellID)
|
|||||||
XSRETURN(1);
|
XSRETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
XS(XS_Client_UpdateTaskActivity); /* prototype to pass -Wmissing-prototypes */
|
XS(XS_Client_UpdateTaskActivity); /* prototype to pass -Wmissing-prototypes */
|
||||||
XS(XS_Client_UpdateTaskActivity)
|
XS(XS_Client_UpdateTaskActivity)
|
||||||
{
|
{
|
||||||
dXSARGS;
|
dXSARGS;
|
||||||
if (items <= 4)
|
if (items < 4)
|
||||||
Perl_croak(aTHX_ "Usage: Client::UpdateTaskActivity(THIS, TaskID, ActivityID, Count, [ignore_quest_update])");
|
Perl_croak(aTHX_ "Usage: Client::UpdateTaskActivity(THIS, TaskID, ActivityID, Count, [ignore_quest_update])");
|
||||||
{
|
{
|
||||||
bool ignore_quest_update = false;
|
bool ignore_quest_update = false;
|
||||||
|
|
||||||
Client * THIS;
|
Client * THIS;
|
||||||
|
|
||||||
int TaskID = (int)SvIV(ST(1));
|
int TaskID = (int)SvIV(ST(1));
|
||||||
int ActivityID = (int)SvIV(ST(2));
|
int ActivityID = (int)SvIV(ST(2));
|
||||||
int Count = (int)SvUV(ST(3));
|
int Count = (int)SvUV(ST(3));
|
||||||
if (items == 4){
|
|
||||||
|
if (items == 5){
|
||||||
ignore_quest_update = (bool)SvTRUE(ST(4));
|
ignore_quest_update = (bool)SvTRUE(ST(4));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user