game: fixed passing constants to lua, refs #605