zeroSlave and WLGfx thanks.
I am creating a map editor voor de good old doom games.
For me it's just to learn how ID software created IWAD and PWAD
directory structure.
IWAD = Internal WAD
PWAD = Patch WAD
WAD = Where's All the Data
The numbers are coord's (x,y)
I made a PWAD file myself to analyse.
Thats is why iám using the HEX Editor.
To check the data stored in the PWAD file
To read the coord data from the file i can't use the unsigned word.
Like WLGfx shows it's a positive variable. (0-65535)
it the only variable that is 16 bits.
x coord = 2 bytes and the y coord = 2 bytes.
I can't use the integer because it's 32 bits.
What i realy need is a signed integer.
but then one that is 16 bits.
Or a way to convert the number so it is giving me the correct -512.
if you have any questions please do.
Thanks Ron.
Programming is learning