Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[just to help]problem of battle ending on pokenet

Newbie Spellweaver
Joined
Jul 22, 2011
Messages
33
Reaction score
1
So I had this problem of battle which is imposible to end. It says (whith pokeares files) in the log that I should look on the line 2190 because of a decimal value.

I have a solution which seems to work :

at those lines :

public void setExp(double exp) {
DecimalFormat form = new DecimalFormat("#.##");
if (exp > 100000000) {
m_exp = 100000000;
return;
}
m_exp = Double.valueOf(form.format(exp));
}

change
m_exp = Double.valueOf(form.format(exp));
by
m_exp = Math.round(exp);


I don't know if it was already posted but if it wasn't now it is ! =)
 
Back
Top