calculation, have always been my main weakness. So I thought I would ask for some suggestions.
On larger maps there has always been an issue of minors generating mainly on the left of map. we know this is due to the shared "minor density" value
position: 0x17D668
length: 8 bytes
default value: 0.2
this value looks to be calculated, but I don't understand how or what the results would be. could some one explain please?
Code: Select all
AUTO:004B1C4A DC 1D 68 F8 57 00 fcomp ds:minor_density_0_2
AUTO:004B1C50 DF E0 fnstsw ax
AUTO:004B1C52 9E sahf
I also noticed every time it loops though this code we have a registry esp+52 for long edge of map and or esp+56 for short edge of map.
Could we use this to get a better placement of minors?
If so could someone give me a code suggestion? I would be happy to test and fine tune.
thunderchero