mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
Fixed compilation warnings reported by MSVC
src\s_sound.cpp(1259): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data src\c_bind.cpp(479): warning C4101: 'c': unreferenced local variable
This commit is contained in:
parent
304e989496
commit
59db1a882f
2 changed files with 2 additions and 2 deletions
|
@ -476,7 +476,7 @@ DEFINE_ACTION_FUNCTION(FKeyBindings, GetKeysForCommand)
|
||||||
{
|
{
|
||||||
PARAM_SELF_STRUCT_PROLOGUE(FKeyBindings);
|
PARAM_SELF_STRUCT_PROLOGUE(FKeyBindings);
|
||||||
PARAM_STRING(cmd);
|
PARAM_STRING(cmd);
|
||||||
int k1, k2, c;
|
int k1, k2;
|
||||||
self->GetKeysForCommand(cmd.GetChars(), &k1, &k2);
|
self->GetKeysForCommand(cmd.GetChars(), &k1, &k2);
|
||||||
if (numret > 0) ret[0].SetInt(k1);
|
if (numret > 0) ret[0].SetInt(k1);
|
||||||
if (numret > 1) ret[1].SetInt(k2);
|
if (numret > 1) ret[1].SetInt(k2);
|
||||||
|
|
|
@ -1256,7 +1256,7 @@ DEFINE_ACTION_FUNCTION(DObject, S_Sound)
|
||||||
PARAM_INT(channel);
|
PARAM_INT(channel);
|
||||||
PARAM_FLOAT_DEF(volume);
|
PARAM_FLOAT_DEF(volume);
|
||||||
PARAM_FLOAT_DEF(attn);
|
PARAM_FLOAT_DEF(attn);
|
||||||
S_Sound(channel, id, volume, attn);
|
S_Sound(channel, id, static_cast<float>(volume), static_cast<float>(attn));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue