Ver código fonte

Small fix for [2845]

GodKratos 16 anos atrás
pai
commit
3bda5a8583

+ 1 - 3
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

@@ -1915,7 +1915,7 @@ public final class L2PcInstance extends L2PlayableInstance
 		if (maxLoad > 0)
 		{
 			int weightproc = getCurrentLoad() * 1000 / maxLoad;
-			weightproc*=(int)calcStat(Stats.WEIGHT_LIMIT, weightproc, this, null);
+			weightproc*=(int)calcStat(Stats.WEIGHT_LIMIT, 1, this, null);
 			int newWeightPenalty;
 			if (weightproc < 500 || _dietMode)
 			{
@@ -10719,8 +10719,6 @@ public final class L2PcInstance extends L2PlayableInstance
 				L2ClanMember clanMember = getClan().getClanMember(getName());
 				if (clanMember != null)
 					clanMember.setPlayerInstance(null);
-				if (isClanLeader())
-					getClan().getLeader().setPlayerInstance(null);
 					
 			}
 			catch (Exception e)

+ 1 - 1
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PetInstance.java

@@ -1121,7 +1121,7 @@ public class L2PetInstance extends L2Summon
 		if (maxLoad > 0)
 		{
 			int weightproc = getCurrentLoad() * 1000 / maxLoad;
-			weightproc*=(int)calcStat(Stats.WEIGHT_LIMIT, weightproc, this, null);
+			weightproc*=(int)calcStat(Stats.WEIGHT_LIMIT, 1, this, null);
 			int newWeightPenalty;
 			if (weightproc < 500 || getOwner().getDietMode())
 			{

+ 0 - 1
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/stat/CharStat.java

@@ -121,7 +121,6 @@ public class CharStat
 				case STAT_MEN:
 				case STAT_STR:
 				case STAT_WIT:
-				case WEIGHT_LIMIT:
 					env.value = 1;
 			}			
 		}

+ 1 - 3
L2_GameServer/java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java

@@ -1432,9 +1432,7 @@ public class Olympiad
 		{
 			File file = new File("log/olympiad.csv");
 			
-			boolean writeHead = false;
-			if (!file.exists())
-				writeHead = true;
+			boolean writeHead = !file.exists();
 			
 			save = new FileWriter(file, true);