Some more FIXMEs

This commit is contained in:
Daniel Gibson 2016-04-18 00:53:58 +02:00
parent 599f644328
commit a358a1763f
3 changed files with 4 additions and 3 deletions

View File

@ -1591,7 +1591,7 @@ INDEX Particles_Regeneration(CEntity *pen, FLOAT tmStart, FLOAT tmStop, FLOAT fY
UBYTE ubR = (UBYTE) (192+afStarsPositions[iRnd][1]*64); UBYTE ubR = (UBYTE) (192+afStarsPositions[iRnd][1]*64);
UBYTE ubG = (UBYTE) (192+afStarsPositions[iRnd][2]*64); UBYTE ubG = (UBYTE) (192+afStarsPositions[iRnd][2]*64);
UBYTE ubB = (UBYTE) (192+afStarsPositions[iRnd][3]*64); UBYTE ubB = (UBYTE) (192+afStarsPositions[iRnd][3]*64); // FIXME DG: afStarsPositions[i][3] invalid, what's going on here?
UBYTE ubA = (UBYTE) CalculateRatio( fT, 0.0f, 1.0f, 0.4f, 0.01f)*255; UBYTE ubA = (UBYTE) CalculateRatio( fT, 0.0f, 1.0f, 0.4f, 0.01f)*255;
COLOR colLine = RGBToColor( ubR, ubG, ubB) | ubA; COLOR colLine = RGBToColor( ubR, ubG, ubB) | ubA;

View File

@ -227,8 +227,9 @@ void CControls::Load_t( CTFileName fnFile)
achrActionName[ 0] = 0; achrActionName[ 0] = 0;
FLOAT fSensitivity = 50; FLOAT fSensitivity = 50;
FLOAT fDeadZone = 0; FLOAT fDeadZone = 0;
// FIXME DG: gcc and clang say the followign has too many arguments for the given format
sscanf( achrLine, "%*[^\"]\"%1024[^\"]\"%*[^\"]\"%1024[^\"]\" %g %g %1024s %1024s", sscanf( achrLine, "%*[^\"]\"%1024[^\"]\"%*[^\"]\"%1024[^\"]\" %g %g %1024s %1024s",
achrActionName, achrAxis, &fSensitivity, &fDeadZone, achrIfInverted, achrIfRelative, achrIfSmooth); achrActionName, achrAxis, &fSensitivity, &fDeadZone, achrIfInverted, achrIfRelative, achrIfSmooth);
// find action axis // find action axis
INDEX iActionAxisNo = -1; INDEX iActionAxisNo = -1;
{for( INDEX iAxis=0; iAxis<AXIS_ACTIONS_CT; iAxis++){ {for( INDEX iAxis=0; iAxis<AXIS_ACTIONS_CT; iAxis++){

View File

@ -1187,7 +1187,7 @@ void JoinNetworkGame(void)
_pNetwork->ga_strRequiredMod.ScanF("%250[^\\]\\%s", &strModName, &strModURL); _pNetwork->ga_strRequiredMod.ScanF("%250[^\\]\\%s", &strModName, &strModURL);
_fnmModSelected = CTString(strModName); _fnmModSelected = CTString(strModName);
_strModURLSelected = strModURL; _strModURLSelected = strModURL;
if (_strModURLSelected="") { if (_strModURLSelected="") { // FIXME DG: not == ?
_strModURLSelected = "http://www.croteam.com/mods/Old"; _strModURLSelected = "http://www.croteam.com/mods/Old";
} }
_strModServerSelected.PrintF("%s:%s", (const char *) _pGame->gam_strJoinAddress, (const char *) _pShell->GetValue("net_iPort")); _strModServerSelected.PrintF("%s:%s", (const char *) _pGame->gam_strJoinAddress, (const char *) _pShell->GetValue("net_iPort"));