fix bugg, start shader

This commit is contained in:
serk 2017-01-21 18:43:50 +01:00
parent 8f9c93a6c3
commit 74256387a0

View file

@ -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;