[colobot] 67/100: Display warning if there is not enough energy to shoot
Didier Raboud
odyx at moszumanska.debian.org
Thu Jun 1 18:10:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository colobot.
commit 47a8f70f0fbf4d4f984da3a595851b89c732ff54
Author: tomangelo2 <tomangelo at wp.pl>
Date: Sat May 20 20:41:30 2017 +0200
Display warning if there is not enough energy to shoot
Fix issue #949
---
src/script/scriptfunc.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/script/scriptfunc.cpp b/src/script/scriptfunc.cpp
index e93d5fa..ee9bc30 100644
--- a/src/script/scriptfunc.cpp
+++ b/src/script/scriptfunc.cpp
@@ -2382,6 +2382,11 @@ bool CScriptFunctions::rFire(CBotVar* var, CBotVar* result, int& exception, void
if ( err != ERR_OK )
{
script->m_taskExecutor->StopForegroundTask();
+ if ( script->m_errMode == ERM_STOP )
+ {
+ exception = err;
+ return false;
+ }
return true;
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list