From: Kimmo R. <ki...@us...> - 2013-07-03 18:54:29
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/mapstuff/useable In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1803/src/games/stendhal/server/entity/mapstuff/useable Modified Files: FishSource.java Log Message: Use MathHelper.parseDouble() Index: FishSource.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/mapstuff/useable/FishSource.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** FishSource.java 22 Jul 2012 17:18:44 -0000 1.7 --- FishSource.java 3 Jul 2013 18:54:25 -0000 1.8 *************** *** 16,19 **** --- 16,20 ---- // + import games.stendhal.common.MathHelper; import games.stendhal.common.Rand; import games.stendhal.server.core.engine.SingletonRepository; *************** *** 96,100 **** if (skill != null) { ! probability = Math.max(probability, Double.parseDouble(skill)); } --- 97,101 ---- if (skill != null) { ! probability = Math.max(probability, MathHelper.parseDouble(skill)); } |