typos
[k8-i-v-a-n.git] / src / game / commands / ToggleRunning.cpp
blobb9e3b313dda621f6007736e7ce519ce626e4476d
1 COMMAND(ToggleRunning) {
2 if (game::PlayerIsRunning() && PLAYER->StateIsActivated(PANIC) && PLAYER->GetTirednessState() != FAINTING) {
3 ADD_MESSAGE("You are too scared to move at a 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;