rpg-x2/game/fx_misc.c