Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Goober5000 on January 17, 2003, 01:51:13 am
-
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.