Code center > Bugs and fixes

inc and dec cost energy

<< < (2/2)

PurpleYouko:
Hmm?

Wonder what it is then?

I know that all commands cost something

That is defined in the options window by "Condition cost". It is set to 0.02 points per DNA instruction by default.

I will look into it today.

Sorry for accusing you Num. Just thought you might have played with costs along with all the stuff that you did for 2.36.

Numsgil:
More than just costing energy, there was something very weird going on.

Basically, dec and inc worked like this:

1.  Read the top value on the stack.  This is the memory location.
2.  Place two values on the stack that correspond to memory location and *memory location +/- 1.
3.  Make a call as if a store command had been used.

I have no idea where this came from.  I fixed it though.

Navigation

[0] Message Index

[*] Previous page

Go to full version