Code center > Bugs and fixes

Why are there two .trefbody sysvars?

(1/1)

EricL:
mem locations 437 and 472 are both .trefbody.  The Wiki even lists both.

Is there some historical thing here I'm unaware of?

Mind if I kill one?  I'll preserve the one that the code translates .trefvar in hand coded bots to so as to not to break any hand-coded bots (unless they rely upon reading from the other mem location).

Numsgil:
Are they both being updated in the same place in the code?  It might be that someone was mucking in the sysvars and made a mistake that got translated into future versions.

EricL:
They are indeed.  mem location 437 is used for hand authored bots which reference .trefbody in their DNA txt files, but both locations are updated.

Jez:
Don't remember any reason for that, might have been intended for something else at some point I suppose.

Simplicity! Yay! Duplicity! Nay!

ROFL

Navigation

[0] Message Index

Go to full version