Fixed wrong weapon drawing and removed old hit code

This commit is contained in:
jancoow
2016-06-22 03:28:18 +02:00
parent 3b131e949d
commit 1da4dedcea
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ void Enemy::update(float delta)
}
Player *player = Player::getInstance();
if(inObject(player->position + player->leftWeapon->collisionPoint)){
/* if(inObject(player->position + player->leftWeapon->collisionPoint)){
if(!isHit){
isHit = true;
hit(player->leftWeapon->damage);
@@ -127,5 +127,5 @@ void Enemy::update(float delta)
std::cout << "HIT2";
}else{
isHit = false;
}
}*/
}