Revert KMR custom change to have same code as in pascalscript original repository
Revert KMR custom change to have same code as in pascalscript original repository

Both versions compile well under Delphi well
reyandme/kam_remake,reyandme/kam_remake,reyandme/kam_remake,reyandme/kam_remake,reyandme/kam_remake