fix bugg, start shader
This commit is contained in:
parent
8f9c93a6c3
commit
74256387a0
1 changed files with 2 additions and 1 deletions
|
@ -35,8 +35,9 @@ bool Player::event(sf::Event e, bool def) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
compas.end();
|
compas.end();
|
||||||
|
if (!error || (error && animate == PlayerState::idle))
|
||||||
|
animate = PlayerState::hurt;
|
||||||
error = true;
|
error = true;
|
||||||
if (animate != PlayerState::inMidle) animate = PlayerState::hurt;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Reference in a new issue