mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-17 14:52:25 +00:00
True optional fix for UpdateTaskActivity now that I've had time to take care of it
This commit is contained in:
parent
3c6c5b9732
commit
a8d28cbed5
@ -5060,11 +5060,15 @@ XS(XS_Client_UpdateTaskActivity)
|
|||||||
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;
|
||||||
|
|
||||||
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));
|
||||||
bool ignore_quest_update = (bool)SvTRUE(ST(4));
|
if (items == 4){
|
||||||
|
ignore_quest_update = (bool)SvTRUE(ST(4));
|
||||||
|
}
|
||||||
|
|
||||||
if (sv_derived_from(ST(0), "Client")) {
|
if (sv_derived_from(ST(0), "Client")) {
|
||||||
IV tmp = SvIV((SV*)SvRV(ST(0)));
|
IV tmp = SvIV((SV*)SvRV(ST(0)));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user