- continued refactoring on sound code.
The game independent part of the code has been mostly isolated.
This commit is contained in:
parent
fd181f469d
commit
b9582cc98e
22 changed files with 1524 additions and 1310 deletions
|
|
@ -1243,7 +1243,7 @@ FxExpression *FxStringCast::Resolve(FCompileContext &ctx)
|
|||
if (basex->isConstant())
|
||||
{
|
||||
ExpVal constval = static_cast<FxConstant *>(basex)->GetValue();
|
||||
FxExpression *x = new FxConstant(S_sfx[constval.GetInt()].name, ScriptPosition);
|
||||
FxExpression *x = new FxConstant(S_GetSoundName(constval.GetInt()), ScriptPosition);
|
||||
delete this;
|
||||
return x;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue