summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-20 19:49:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-20 19:49:01 +0300
commit0cf09f63f5c626738f2dfdec82da876723b0db89 (patch)
treeb6b9d22c0b4cc2f51957355271eedbc26fd42aee /src/net/eathena
parent682ae29f4861c1434db7f5f885cd5062d73b0d1a (diff)
downloadmv-0cf09f63f5c626738f2dfdec82da876723b0db89.tar.gz
mv-0cf09f63f5c626738f2dfdec82da876723b0db89.tar.bz2
mv-0cf09f63f5c626738f2dfdec82da876723b0db89.tar.xz
mv-0cf09f63f5c626738f2dfdec82da876723b0db89.zip
Add explicit keyword into CardsList.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beinghandler.cpp30
-rw-r--r--src/net/eathena/beingrecv.cpp34
-rw-r--r--src/net/eathena/charserverrecv.cpp22
3 files changed, 43 insertions, 43 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index f1f47ca61..49e96501e 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -54,77 +54,77 @@ void BeingHandler::undress(Being *const being) const
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_HEAD_BOTTOM,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_HEAD_TOP,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_HEAD_MID,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_CLOTHES_COLOR,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_SHIELD,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_FLOOR,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_ROBE,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_EVOL2,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_EVOL3,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_EVOL4,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_EVOL5,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_EVOL6,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_HAIR,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
being->setSprite(SPRITE_SHOES,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
}
void BeingHandler::requestRanks(const RankT rank) const
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 83c6b9515..4a05c44dc 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -164,13 +164,13 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
"",
itemColor,
- cards);
+ CardsList(cards));
dstBeing->setWeaponId(id);
dstBeing->setSprite(SPRITE_FLOOR,
id2,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_FLOOR);
break;
@@ -179,7 +179,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_WEAPON);
break;
@@ -188,7 +188,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_CLOTHES_COLOR);
break;
@@ -198,7 +198,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_BOTTOM);
break;
@@ -217,7 +217,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_FLOOR);
break;
@@ -226,7 +226,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_HAIR);
break;
@@ -235,7 +235,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_SHOES);
break;
@@ -244,7 +244,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_SHIELD);
break;
@@ -253,7 +253,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_TOP);
break;
@@ -262,7 +262,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_HEAD_MID);
break;
@@ -271,7 +271,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_ROBE);
break;
@@ -280,7 +280,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL2);
break;
@@ -289,7 +289,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL3);
break;
@@ -298,7 +298,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL4);
break;
@@ -307,7 +307,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL5);
break;
@@ -316,7 +316,7 @@ void BeingRecv::processBeingChangeLookContinue(const Net::MessageIn &msg,
id,
color,
itemColor,
- cards);
+ CardsList(cards));
if (localPlayer)
localPlayer->imitateOutfit(dstBeing, SPRITE_EVOL6);
break;
diff --git a/src/net/eathena/charserverrecv.cpp b/src/net/eathena/charserverrecv.cpp
index d3300f092..8b9de16a9 100644
--- a/src/net/eathena/charserverrecv.cpp
+++ b/src/net/eathena/charserverrecv.cpp
@@ -133,7 +133,7 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg,
weapon,
"",
ItemColor_one,
- nullptr);
+ zeroCards);
tempPlayer->setWeaponId(weapon);
data.mAttributes[Attributes::LEVEL] = msg.readInt16("level");
@@ -152,7 +152,7 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg,
0,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
}
else
{
@@ -161,7 +161,7 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg,
ItemDB::get(-hairStyle).getDyeColorsString(
color),
ItemColor_one,
- nullptr);
+ zeroCards);
}
const uint16_t look = msg.readInt16("clothes color");
@@ -194,42 +194,42 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg,
shoes,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
tempPlayer->setSprite(SPRITE_SHOES,
gloves,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
tempPlayer->setSprite(SPRITE_SHIELD,
cape,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
tempPlayer->setSprite(SPRITE_HEAD_TOP,
misc1,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
tempPlayer->setSprite(SPRITE_WEAPON,
bottomClothes,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
tempPlayer->setSprite(SPRITE_FLOOR,
shield,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
tempPlayer->setSprite(SPRITE_CLOTHES_COLOR,
hat,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
tempPlayer->setSprite(SPRITE_HEAD_BOTTOM,
topClothes,
std::string(),
ItemColor_one,
- nullptr);
+ zeroCards);
// tempPlayer->setSprite(SPRITE_HEAD_MID, misc2);
}
if (packetVersion >= 20110928)