mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:53:52 +00:00
Allow usage of more keywords as string arguments (bug #5087)
This commit is contained in:
parent
bd18655d23
commit
8f2ed884a5
2 changed files with 18 additions and 0 deletions
|
@ -118,6 +118,7 @@
|
||||||
Bug #5075: Enchanting cast style can be changed if there's no object
|
Bug #5075: Enchanting cast style can be changed if there's no object
|
||||||
Bug #5078: DisablePlayerLooking is broken
|
Bug #5078: DisablePlayerLooking is broken
|
||||||
Bug #5082: Scrolling with controller in GUI mode is broken
|
Bug #5082: Scrolling with controller in GUI mode is broken
|
||||||
|
Bug #5087: Some valid script names can't be used as string arguments
|
||||||
Bug #5089: Swimming/Underwater creatures only swim around ground level
|
Bug #5089: Swimming/Underwater creatures only swim around ground level
|
||||||
Bug #5092: NPCs with enchanted weapons play sound when out of charges
|
Bug #5092: NPCs with enchanted weapons play sound when out of charges
|
||||||
Bug #5093: Hand to hand sound plays on knocked out enemies
|
Bug #5093: Hand to hand sound plays on knocked out enemies
|
||||||
|
|
|
@ -56,6 +56,23 @@ namespace Compiler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (keyword==Scanner::K_end || keyword==Scanner::K_begin ||
|
||||||
|
keyword==Scanner::K_short || keyword==Scanner::K_long ||
|
||||||
|
keyword==Scanner::K_float || keyword==Scanner::K_if ||
|
||||||
|
keyword==Scanner::K_endif || keyword==Scanner::K_else ||
|
||||||
|
keyword==Scanner::K_elseif || keyword==Scanner::K_while ||
|
||||||
|
keyword==Scanner::K_endwhile || keyword==Scanner::K_return ||
|
||||||
|
keyword==Scanner::K_messagebox || keyword==Scanner::K_set ||
|
||||||
|
keyword==Scanner::K_to || keyword==Scanner::K_startscript ||
|
||||||
|
keyword==Scanner::K_stopscript || keyword==Scanner::K_enable ||
|
||||||
|
keyword==Scanner::K_disable || keyword==Scanner::K_getdisabled ||
|
||||||
|
keyword==Scanner::K_getdistance || keyword==Scanner::K_scriptrunning ||
|
||||||
|
keyword==Scanner::K_getsquareroot || keyword==Scanner::K_menumode ||
|
||||||
|
keyword==Scanner::K_random || keyword==Scanner::K_getsecondspassed)
|
||||||
|
{
|
||||||
|
return parseName (loc.mLiteral, loc, scanner);
|
||||||
|
}
|
||||||
|
|
||||||
return Parser::parseKeyword (keyword, loc, scanner);
|
return Parser::parseKeyword (keyword, loc, scanner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue