Skip to content

Commit

Permalink
Fix: quito la verificacion de posicion de spaz
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyA5 committed Jun 25, 2024
1 parent f4036e8 commit 0704573
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/engine/spaz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ void Spaz::execute_special_attack() {

void Spaz::set_new_rectangle(Rectangle new_rectangle) {
rectangle = new_rectangle;
if (position != -1) {
snapshot.players[position].position_x = rectangle.getTopLeftCorner().getX();
snapshot.players[position].position_y = rectangle.getTopLeftCorner().getY();
}
snapshot.players[position].position_x = rectangle.getTopLeftCorner().getX();
snapshot.players[position].position_y = rectangle.getTopLeftCorner().getY();
}

void Spaz::update_special_attack() {
Expand Down

0 comments on commit 0704573

Please sign in to comment.