forgottenserver
forgottenserver copied to clipboard
Change lua_pushnumber to lua_pushinteger for non floating point values
Pull Request Prelude
- [x] I have followed proper The Forgotten Server code styling.
- [x] I have read and understood the contribution guidelines before making this PR.
- [x] I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.
Changes Proposed
Replace some lua_pushnumber
with lua_pushinteger
to fix display of some integer values in game.
I'm not sure if it's a valid approach and also I'm not sure about changes in:
-
setField
-
LuaScriptInterface::registerVariable
Issues addressed: #4522
Sorry missclicked
needs a rebase
@EvilHero90 we can't merge this right now because it implies dropping LuaJIT support, but we can do it for the next release cycle
@EvilHero90 we can't merge this right now because it implies dropping LuaJIT support, but we can do it for the next release cycle
There was no intention to push this immediatly, I just want to see if this gets worked on or not