I don't know if this is a bug, but I don't recall being able to do this in the past...
I can have something like this with no problems compiling:
mob/var
body
body
body
this can be in the same code section, same file, or spread throughout different files.
For example, in mob.dm I store the default values for each race, so I'll have mob/var/strength & mob/dwarf/strength=10 is the default for that race.
If there's something out there that I've got (say a skill test where I hadn't yet defined "strength" as a variable so put one in so the function would work) mob/var/strength or mob/dwarf/var/strength.
Depending on the order of the code files, one of them takes presidence and the world could initialize using a null or incorrect value...
Makes me really like using central defining sections to store all the information :). Time to go through all my code and remove the duplicates.
- -
ID:138486
Jul 19 2000, 8:32 am
|
|
Ouch. I'm almost certain that's a bad bug.