Sounds like the string parser that read the text files properly interprets the negative numbers, and stores them in an appropriate twos-complement format.  Then the game takes the twos-complement negative number, and treats it like an unsigned integer.  Negative one would become 65,535.
Of course, anyone reading this who understands the term "two-complement" also already knew what was happening and had no need for my explanation.  

  Sorry.