From: Jaka K. <lyn...@us...> - 2011-06-14 10:45:15
|
gemrb: Infinity Engine emulator The branch master has been updated via 26ad4fbd76246570526972c1a61fe3635cff62b3 (commit) Summary of changes: gemrb/core/EffectQueue.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) from 97e9e673419fb9db083750260fa2d892794564b8 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://gemrb.git.sourceforge.net/git/gitweb.cgi?p=gemrb/gemrb;a=commitdiff;h=26ad4fbd76246570526972c1a61fe3635cff62b3 commit 26ad4fbd76246570526972c1a61fe3635cff62b3 Author: Jaka Kranjc <lyn...@us...> Date: Tue Jun 14 12:28:05 2011 +0200 check_resistance: do a signed check against magic resistance diff --git a/gemrb/core/EffectQueue.cpp b/gemrb/core/EffectQueue.cpp index 7d84193..c5d8cf0 100644 --- a/gemrb/core/EffectQueue.cpp +++ b/gemrb/core/EffectQueue.cpp @@ -1002,7 +1002,7 @@ static bool check_resistance(Actor* actor, Effect* fx) //magic immunity ieDword val = actor->GetStat(IE_RESISTMAGIC); - if( fx->random_value < val) { + if( fx->random_value < (signed)val) { // when using biased magic resistance non-hostile spells aren't resisted if ((selective_mr && (fx->SourceFlags&SF_HOSTILE)) || !selective_mr) { print ("effect resisted: %s\n", (char*) Opcodes[fx->Opcode].Name); ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- gemrb: Infinity Engine emulator |