[wpdev-commits] wolfpack combat.cpp,1.173,1.174
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-08-29 15:35:12
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12072 Modified Files: combat.cpp Log Message: combat fix (hopefully) Index: combat.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/combat.cpp,v retrieving revision 1.173 retrieving revision 1.174 diff -C2 -d -r1.173 -r1.174 *** combat.cpp 4 Aug 2004 23:17:35 -0000 1.173 --- combat.cpp 29 Aug 2004 15:35:03 -0000 1.174 *************** *** 141,144 **** --- 141,148 ---- if ( victim_ ) { + if (victim_->attackTarget() == attacker_) { + victim_->setAttackTarget(0); + } + victim_->fights().remove( this ); } *************** *** 146,149 **** --- 150,157 ---- if ( attacker_ ) { + if (attacker_->attackTarget() == victim_) { + attacker_->setAttackTarget(0); + } + attacker_->fights().remove( this ); } |