In Resource.java comment the 2 lines shown below to remove the s2m conversion.
- Code: Select all
public Neg(byte[] buf) {
int off;
cc = cdec(buf, 0);
bc = cdec(buf, 4);
bs = cdec(buf, 8);
sz = cdec(buf, 12);
//bc = MapView.s2m(bc);
//bs = MapView.s2m(bs).add(bc.inv());
In CommonPlant.java, GaussianPlant.java and GrowingPlant.java edit the lines requiring neg values to work.
From this:
- Code: Select all
Coord c = neg.bc.add(rnd.nextInt(neg.bs.x), rnd.nextInt(neg.bs.y));
To this:
- Code: Select all
Coord bc = new Coord(-4,-4);
Coord c = bc.add(rnd.nextInt(12), rnd.nextInt(12));
GrowingPlant.java is a bit more complicated but should look like this:
- Code: Select all
if(Config.simple_plants){
//c = neg.bc.add(neg.bs).sub(5, 5);
c = Coord.z; // new
} else {
//c = new Coord(rnd.nextInt(neg.bs.x), rnd.nextInt(neg.bs.y)).add(neg.bc);
Coord bc = new Coord(-5,-5);
c = new Coord(rnd.nextInt(11), rnd.nextInt(11)).add(bc); // new
}
I haven't had the time to test all this out for several hours so your pc might blow up if you try this out. Use with care I guess.