Skip to content
Snippets Groups Projects

Fix the Add command when floats

Merged James R. requested to merge add-floats-command into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -902,7 +902,10 @@ static void COM_Add_f(void)
return;
}
CV_AddValue(cvar, atoi(COM_Argv(2)));
if (( cvar->flags & CV_FLOAT ))
CV_Set(cvar, va("%f", FIXED_TO_FLOAT (cvar->value) + atof(COM_Argv(2))));
else
CV_AddValue(cvar, atoi(COM_Argv(2)));
}
// =========================================================================
Loading