From: Jaka K. <lyn...@us...> - 2010-08-12 14:00:37
|
gemrb: Infinity Engine emulator The branch master has been updated via b5e6d68647b0d1137ee6542ea6e36889630f437a (commit) Summary of changes: gemrb/GUIScripts/bg2/GUIMG.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) from 7105ebfc486756b74273964b11ff4569607c74e9 (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=b5e6d68647b0d1137ee6542ea6e36889630f437a commit b5e6d68647b0d1137ee6542ea6e36889630f437a Author: Jaka Kranjc <lyn...@us...> Date: Thu Aug 12 16:03:23 2010 +0200 bg2::guimg: check if the sorcerer knows any spells of that level, so that a /0 can't occur diff --git a/gemrb/GUIScripts/bg2/GUIMG.py b/gemrb/GUIScripts/bg2/GUIMG.py index 5566356..2fda631 100644 --- a/gemrb/GUIScripts/bg2/GUIMG.py +++ b/gemrb/GUIScripts/bg2/GUIMG.py @@ -199,8 +199,11 @@ def UpdateMageWindow (): Button.EnableBorder (0, 0) else: label = Window.GetControl (0x10000040) - # we give sorcerers all charges for all the spells, so some extra math is needed - label.SetText (GemRB.GetString(61256) + " " + str(mem_cnt/known_cnt) + "/" + str(max_mem_cnt)) #spells can cast + if known_cnt: + # we give sorcerers all charges for all the spells, so some extra math is needed + label.SetText (GemRB.GetString(61256) + " " + str(mem_cnt/known_cnt) + "/" + str(max_mem_cnt)) + else: + label.SetText ("") for i in range (24): Button = Window.GetControl (27 + i) ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- gemrb: Infinity Engine emulator |