mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 04:42:28 +00:00
ulong conversions to u/int/8/16
This commit is contained in:
parent
26d531f704
commit
e046719d0e
@ -182,7 +182,7 @@ XS(XS__summonitem)
|
|||||||
if (items == 1)
|
if (items == 1)
|
||||||
quest_manager.summonitem(SvUV(ST(0)));
|
quest_manager.summonitem(SvUV(ST(0)));
|
||||||
else if(items == 2)
|
else if(items == 2)
|
||||||
quest_manager.summonitem(SvUV(ST(0)), SvUV(ST(1)));
|
quest_manager.summonitem(SvUV(ST(0)), (int16)SvUV(ST(1)));
|
||||||
else
|
else
|
||||||
Perl_croak(aTHX_ "Usage: summonitem(itemid, [charges])");
|
Perl_croak(aTHX_ "Usage: summonitem(itemid, [charges])");
|
||||||
XSRETURN_EMPTY;
|
XSRETURN_EMPTY;
|
||||||
|
|||||||
@ -476,9 +476,9 @@ void Zone::LoadNewMerchantData(uint32 merchantid){
|
|||||||
ml.id = merchantid;
|
ml.id = merchantid;
|
||||||
ml.item = atoul(row[0]);
|
ml.item = atoul(row[0]);
|
||||||
ml.slot = atoul(row[1]);
|
ml.slot = atoul(row[1]);
|
||||||
ml.faction_required = atoul(row[2]);
|
ml.faction_required = (int16)atoul(row[2]);
|
||||||
ml.level_required = atoul(row[3]);
|
ml.level_required = (int8)atoul(row[3]);
|
||||||
ml.alt_currency_cost = atoul(row[3]);
|
ml.alt_currency_cost = (uint16)atoul(row[3]);
|
||||||
ml.classes_required = atoul(row[4]);
|
ml.classes_required = atoul(row[4]);
|
||||||
merlist.push_back(ml);
|
merlist.push_back(ml);
|
||||||
}
|
}
|
||||||
@ -523,9 +523,9 @@ void Zone::LoadMerchantData_result(MYSQL_RES* result) {
|
|||||||
|
|
||||||
ml.slot = atoul(row[1]);
|
ml.slot = atoul(row[1]);
|
||||||
ml.item = atoul(row[2]);
|
ml.item = atoul(row[2]);
|
||||||
ml.faction_required = atoul(row[3]);
|
ml.faction_required = (int16)atoul(row[3]);
|
||||||
ml.level_required = atoul(row[4]);
|
ml.level_required = (int8)atoul(row[4]);
|
||||||
ml.alt_currency_cost = atoul(row[5]);
|
ml.alt_currency_cost = (uint16)atoul(row[5]);
|
||||||
ml.classes_required = atoul(row[6]);
|
ml.classes_required = atoul(row[6]);
|
||||||
cur->second.push_back(ml);
|
cur->second.push_back(ml);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user