summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-24 01:28:28 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-24 01:28:28 +0300
commite22f6d0070ea2b0102caf3b738fba703606e6bd4 (patch)
treee40148f0e08490d6f3ea4a3f480739c717d9a70a /src/net/tmwa
parent7f62fc6f4a1765d10cca3977cfbfe1917e4596fe (diff)
downloadplus-e22f6d0070ea2b0102caf3b738fba703606e6bd4.tar.gz
plus-e22f6d0070ea2b0102caf3b738fba703606e6bd4.tar.bz2
plus-e22f6d0070ea2b0102caf3b738fba703606e6bd4.tar.xz
plus-e22f6d0070ea2b0102caf3b738fba703606e6bd4.zip
First step of removing local pets (tmwa only).
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/pethandler.cpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/net/tmwa/pethandler.cpp b/src/net/tmwa/pethandler.cpp
index 7748a4385..4f82a6e59 100644
--- a/src/net/tmwa/pethandler.cpp
+++ b/src/net/tmwa/pethandler.cpp
@@ -41,10 +41,9 @@ PetHandler::PetHandler() :
}
void PetHandler::move(const int petId A_UNUSED,
- const int x, const int y) const
+ const int x A_UNUSED,
+ const int y A_UNUSED) const
{
- chatHandler->talk(strprintf("\302\202\302m%d,%dg%d",
- x, y, tick_time), GENERAL_CHANNEL);
}
void PetHandler::spawn(const Being *const being A_UNUSED,
@@ -53,15 +52,9 @@ void PetHandler::spawn(const Being *const being A_UNUSED,
{
}
-void PetHandler::emote(const uint8_t emoteId,
+void PetHandler::emote(const uint8_t emoteId A_UNUSED,
const int petId A_UNUSED)
{
- mRandCounter ++;
- if (mRandCounter > 10000)
- mRandCounter = 1000;
-
- chatHandler->talk(strprintf("\302\202\302e%dz%d",
- CAST_S32(emoteId), mRandCounter), GENERAL_CHANNEL);
}
void PetHandler::catchPet(const Being *const being A_UNUSED) const
@@ -96,16 +89,12 @@ void PetHandler::unequip() const
{
}
-void PetHandler::setDirection(const unsigned char type) const
+void PetHandler::setDirection(const unsigned char type A_UNUSED) const
{
- chatHandler->talk(strprintf("\302\202\302d%dg%d",
- CAST_S32(type), tick_time), GENERAL_CHANNEL);
}
-void PetHandler::startAi(const bool start) const
+void PetHandler::startAi(const bool start A_UNUSED) const
{
- chatHandler->talk(strprintf("\302\202\302a%dg%d",
- start ? 1 : 0, tick_time), GENERAL_CHANNEL);
}
} // namespace TmwAthena