Permalink
Browse files

Made the stamina deplete only when the character is actually running.

I found it unfair and illogical to let it go empty when you were
stuck somewhere, just because you keep the keys pushed.
  • Loading branch information...
1 parent fb34aa6 commit 231d9b7ed13818f97f711fc961bee939916ec8ef Yohann Ferreira committed Sep 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/modes/map/map.cpp
View
@@ -580,10 +580,10 @@ void MapMode::_UpdateExplore() {
return;
}
- // Update the running state of the camera object. Check if the player wishes to continue running and if so,
+ // Update the running state of the camera object. Check if the character is running and if so,
// update the stamina value if the operation is permitted
_camera->is_running = false;
- if (_running_disabled == false && InputManager->CancelState() == true &&
+ if (_camera->moved_position && !_running_disabled && InputManager->CancelState() &&
(InputManager->UpState() || InputManager->DownState() || InputManager->LeftState() || InputManager->RightState()))
{
if (_unlimited_stamina) {

0 comments on commit 231d9b7

Please sign in to comment.