From a2a5cf8181121091c7a67bdfa14e076d2026a1a5 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 19 Apr 2011 13:23:51 +0200 Subject: remove old crap --- pacman-c++/server.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pacman-c++/server.cpp b/pacman-c++/server.cpp index 4219a43..07e4c72 100644 --- a/pacman-c++/server.cpp +++ b/pacman-c++/server.cpp @@ -354,10 +354,6 @@ void Server::sendUpdate(Transmission::map_t map, bool firstPacket) void Server::botCalculate(Actor *actor) { - /* move as long as possible in one direction */ - //if (m_actorMovements[actor->color()] != Actor::None) - // return; - QPoint actorpos = CoordToMapPosition(actor->pos().toPoint()); /* first make list of possible directions based on current actor position */ @@ -396,7 +392,7 @@ void Server::botCalculate(Actor *actor) if (directions.empty()) return; - /* determine if other actors are in range to afraid/hunt*/ + /* determine if other actors are in range to be afraid/to hunt */ int mindistance = Constants::AI::player_minimum_distance; QList pos_afraid; QList pos_hunt; @@ -439,7 +435,6 @@ void Server::botCalculate(Actor *actor) foreach(QPoint otherpos, pos_hunt) { int olddistance = (actorpos - otherpos).manhattanLength(); - int newdistance = (newpos - otherpos).manhattanLength(); if (newdistance <= olddistance) i.setValue(i.value() += Constants::AI::weight_hunt); -- cgit v1.2.3