The rabbit is moving on it's own

This commit is contained in:
2016-03-29 20:19:13 +11:00
parent a532d33579
commit 4794965166
8 changed files with 78 additions and 5 deletions
+3
View File
@@ -779,6 +779,7 @@ void World::hCharacterMovement(CharacterPacket* const argPacket) {
//-------------------------
void World::hCreatureUpdate(CreaturePacket* const argPacket) {
std::cout << "hCreatureUpdate" << std::endl;
//TODO: (1) Authentication
//check that this character exists
@@ -868,6 +869,8 @@ void World::hQueryCreatureExists(CreaturePacket* const argPacket) {
}
void World::hCreatureMovement(CreaturePacket* const argPacket) {
std::cout << "hCreatureMovement" << std::endl;
//ignore if this creature doesn't exist
std::map<int, BaseCreature>::iterator creatureIt = creatureMap.find(argPacket->creatureIndex);
if (creatureIt == creatureMap.end()) {