The Trunk: EToys-ul.294.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: EToys-ul.294.mcz

commits-2
Levente Uzonyi uploaded a new version of EToys to project The Trunk:
http://source.squeak.org/trunk/EToys-ul.294.mcz

==================== Summary ====================

Name: EToys-ul.294
Author: ul
Time: 24 April 2017, 6:45:53.242181 pm
UUID: e5de2bdd-eb92-463c-a91e-1cdd166b8e6e
Ancestors: EToys-ul.293

- removed the #vmParameterAt:put: sends from KedamaMorph >> #calcTurtlesCount, and simplified it

=============== Diff against EToys-ul.293 ===============

Item was changed:
  ----- Method: KedamaMorph>>calcTurtlesCount (in category 'turtles') -----
  calcTurtlesCount
 
+ turtleCount := turtlesDict detectSum: [ :each | each size ]!
- turtleCount := 0.
- turtlesDict do: [:a | turtleCount := turtleCount + a size].
-
- Smalltalk vmParameterAt: 5 put: ((turtleCount * 3) min: 16000 max: 4000).
- Smalltalk vmParameterAt: 6 put: ((turtleCount * 6) min: 32000 max: 8000).
- !