Author Topic: odd bug fix  (Read 1211 times)

0 Members and 1 Guest are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
IceFire had reported that with the most recent fs2_open builds, Cyclops#Short was showing up on the HUD weapon display where previously it had displayed Cyclops.  I investigated this, and I found out something very odd.  The bug was not due to a change in code, but due to the compiler itself... either a bug or an incompatibility.

The problem dealt with finding the # character in the string to truncate it.  The way this was done was by returning a char pointer using strstr(string, "#").  Strangely enough, this didn't work!  However, strchr(string, '#') did work, so I changed all the truncating routines.

Does anyone know which compiler Volition used?  I'm using MSVC++ 6.