From: Hendrik <nh...@us...> - 2006-06-18 20:14:03
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/npc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29057/src/games/stendhal/server/entity/npc Modified Files: BuyerBehaviour.java Log Message: Do not put money on bank if there is no money in bag but on bank (workaround see http://sourceforge.net/support/tracker.php?aid=1494702 for the root cause). Index: BuyerBehaviour.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/npc/BuyerBehaviour.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BuyerBehaviour.java 14 Jun 2006 11:44:55 -0000 1.4 --- BuyerBehaviour.java 18 Jun 2006 20:13:56 -0000 1.5 *************** *** 40,48 **** while (it.hasNext() && !found) { RPSlot slot = it.next(); ! for (RPObject object: slot) { ! if (object instanceof Money) { ! ((Money) object).add(getCharge(player)); ! found = true; ! break; } } --- 40,53 ---- while (it.hasNext() && !found) { RPSlot slot = it.next(); ! ! // TODO: this is a workaround for bug #1494702 ! if ((slot.getName() != null) && (!slot.getName().equals("bank"))) { ! ! for (RPObject object: slot) { ! if (object instanceof Money) { ! ((Money) object).add(getCharge(player)); ! found = true; ! break; ! } } } |