mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-02 21:42:17 +00:00
[Cleanup] Quest API push methods using invalid types. (#2172)
* [Cleanup] Quest API push methods using invalid types. - Some push methods were pushing integers as unsigned integers or unsigned integer as integers, this fixes all of that. - Also cleans up some lines that had multiple function calls on them. * More cleanup of bools and one expansion name was wrong.
This commit is contained in:
1 parent
8554aab2ff
commit
7c1a139991
16 files changed
+454
-288
No files matched your search
@@ -317,7 +317,8 @@ XS(XS_PerlPacket_GetByte)
|
||||
uint32 pos = (uint32)SvUV(ST(1));
|
||||
VALIDATE_THIS_IS_PACKET;
|
||||
RETVAL = THIS->GetByte(pos);
|
||||
XSprePUSH; PUSHu((UV)RETVAL);
|
||||
XSprePUSH;
|
||||
PUSHu((UV) RETVAL);
|
||||
}
|
||||
XSRETURN(1);
|
||||
}
|
||||
@@ -335,7 +336,8 @@ XS(XS_PerlPacket_GetShort)
|
||||
uint32 pos = (uint32)SvUV(ST(1));
|
||||
VALIDATE_THIS_IS_PACKET;
|
||||
RETVAL = THIS->GetShort(pos);
|
||||
XSprePUSH; PUSHu((UV)RETVAL);
|
||||
XSprePUSH;
|
||||
PUSHu((UV) RETVAL);
|
||||
}
|
||||
XSRETURN(1);
|
||||
}
|
||||
@@ -353,7 +355,8 @@ XS(XS_PerlPacket_GetLong)
|
||||
uint32 pos = (uint32)SvUV(ST(1));
|
||||
VALIDATE_THIS_IS_PACKET;
|
||||
RETVAL = THIS->GetLong(pos);
|
||||
XSprePUSH; PUSHu((UV)RETVAL);
|
||||
XSprePUSH;
|
||||
PUSHu((UV) RETVAL);
|
||||
}
|
||||
XSRETURN(1);
|
||||
}
|
||||
@@ -371,7 +374,8 @@ XS(XS_PerlPacket_GetFloat)
|
||||
uint32 pos = (uint32)SvUV(ST(1));
|
||||
VALIDATE_THIS_IS_PACKET;
|
||||
RETVAL = THIS->GetFloat(pos);
|
||||
XSprePUSH; PUSHn((double)RETVAL);
|
||||
XSprePUSH;
|
||||
PUSHn((double) RETVAL);
|
||||
}
|
||||
XSRETURN(1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user