From: Kimmo R. <ki...@us...> - 2013-11-23 19:38:54
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv5054/src/games/stendhal/server/entity/creature Modified Files: DeathMatchCreature.java Log Message: Fixed treatment of player who have been offline in between Index: DeathMatchCreature.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature/DeathMatchCreature.java,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** DeathMatchCreature.java 23 Nov 2013 18:29:25 -0000 1.30 --- DeathMatchCreature.java 23 Nov 2013 19:38:50 -0000 1.31 *************** *** 61,70 **** protected void rewardKillers(final int oldXP) { for (Entry<Entity, Integer> entry : damageReceived.entrySet()) { ! Entity entity = entry.getKey(); ! if (!(entity instanceof Player)) { ! continue; ! } ! Player killer = (Player) entity; ! if (killer.isDisconnected()) { continue; } --- 61,66 ---- protected void rewardKillers(final int oldXP) { for (Entry<Entity, Integer> entry : damageReceived.entrySet()) { ! Player killer = entityAsOnlinePlayer(entry.getKey()); ! if (killer == null) { continue; } |