Fix Player::Hurt not having a return value. Web build created.

pull/28/head
sigonasr2 1 year ago
parent 9e6573729e
commit c81040494c
  1. 1
      Crawler/Player.cpp
  2. BIN
      Crawler/pge.data
  3. 2
      Crawler/pge.js
  4. BIN
      Crawler/pge.wasm

@ -271,6 +271,7 @@ bool Player::Hurt(int damage){
if(state==State::BLOCK)damage=0;
hp=std::max(0,hp-damage);
DAMAGENUMBER_LIST.push_back(DamageNumber(pos,damage));
return true;
}
void Player::AddAnimation(AnimationState state){

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 152 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.
Loading…
Cancel
Save