mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 12:08:12 +03:00
Cast to float
This commit is contained in:
parent
6a6d472658
commit
d19b91263f
1 changed files with 6 additions and 6 deletions
|
@ -96,7 +96,7 @@ float getTokenFloat(const char** parameters, char* parmName, AliasListNode_t* no
|
||||||
|
|
||||||
if (token && *token)
|
if (token && *token)
|
||||||
{
|
{
|
||||||
temp_float = atof(token);
|
temp_float = (float)atof(token);
|
||||||
if (temp_float < 0.0f)
|
if (temp_float < 0.0f)
|
||||||
{
|
{
|
||||||
Com_Printf("ERROR getTokenFloat: %s value out of range in %s alias\n", parmName, node->alias_name);
|
Com_Printf("ERROR getTokenFloat: %s value out of range in %s alias\n", parmName, node->alias_name);
|
||||||
|
@ -281,7 +281,7 @@ void Alias_ListAddParms(AliasListNode_t* node, const char* parameters)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
temp_float = atof(token);
|
temp_float = (float)atof(token);
|
||||||
if (temp_float < 0.0f)
|
if (temp_float < 0.0f)
|
||||||
{
|
{
|
||||||
Com_Printf("Pitch value out of range in %s alias\n", node->alias_name);
|
Com_Printf("Pitch value out of range in %s alias\n", node->alias_name);
|
||||||
|
@ -298,7 +298,7 @@ void Alias_ListAddParms(AliasListNode_t* node, const char* parameters)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
temp_float = atof(token);
|
temp_float = (float)atof(token);
|
||||||
if (temp_float < 0.0f)
|
if (temp_float < 0.0f)
|
||||||
{
|
{
|
||||||
Com_Printf("PitchMod value out of range in %s alias\n", node->alias_name);
|
Com_Printf("PitchMod value out of range in %s alias\n", node->alias_name);
|
||||||
|
@ -315,7 +315,7 @@ void Alias_ListAddParms(AliasListNode_t* node, const char* parameters)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
temp_float = atof(token);
|
temp_float = (float)atof(token);
|
||||||
if (temp_float < 0.0f)
|
if (temp_float < 0.0f)
|
||||||
{
|
{
|
||||||
Com_Printf("volumeMod value out of range in %s alias\n", node->alias_name);
|
Com_Printf("volumeMod value out of range in %s alias\n", node->alias_name);
|
||||||
|
@ -333,7 +333,7 @@ void Alias_ListAddParms(AliasListNode_t* node, const char* parameters)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
temp_float = atof(token);
|
temp_float = (float)atof(token);
|
||||||
if (temp_float < 0.0f)
|
if (temp_float < 0.0f)
|
||||||
{
|
{
|
||||||
Com_Printf("dist value out of range in %s alias\n", node->alias_name);
|
Com_Printf("dist value out of range in %s alias\n", node->alias_name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue