mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed floats being interpreted as integers sometimes
This commit is contained in:
parent
49850940d6
commit
16d262f6ee
1 changed files with 0 additions and 5 deletions
|
@ -518,11 +518,6 @@ void ScriptCompiler::EmitField(sval_t listener_val, sval_t field_val, unsigned i
|
|||
|
||||
void ScriptCompiler::EmitFloat(float value, unsigned int sourcePos)
|
||||
{
|
||||
// ley0k: optimization
|
||||
if (value == (float)(int)value) {
|
||||
return EmitInteger((unsigned int)value, sourcePos);
|
||||
}
|
||||
|
||||
EmitOpcode(OP_STORE_FLOAT, sourcePos);
|
||||
|
||||
EmitOpcodeValue(value, sizeof(float));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue