fixed some bugs in new 'g'o system
[k8-i-v-a-n.git] / src / game / commands / ToggleRunning.cpp
blob5312fa13776efe77f7507471dbaa01bacd369310
1 COMMAND(ToggleRunning) {
2 if (game::PlayerIsRunning() && PLAYER->StateIsActivated(PANIC) && PLAYER->GetTirednessState() != FAINTING) {
3 ADD_MESSAGE("You are too scared to move at normal pace.");
4 return false;
6 if (!Char->CanMove()) {
7 ADD_MESSAGE("Well, well, aren't we funny today, eh?");
8 return false;
10 game::SetPlayerIsRunning(!game::PlayerIsRunning());
11 return false;