numscans is not a global variable anymore
numhits is not a global anymore
numbunches is not a global anymore
Removed optimizations.
Added comments
Replaced msqrtasm with a call to <math.h> sqrt()
Replaced nsqrt square root implementation with a call to <math.h> sqrt.
Renamed nsqrtasm to fixedPointSqrt
loadtables doesn't have to be a global
fpuasm is useless
tempbuf is not a global anymore
Now drawrooms returns a pointer to an struct to the game.c module. This struct should be passed as a parameter to the drawmasks function.

Right now this struct only contains  the spritesortcnt variable, but more stuff will be added later
Bufplce is not global anymore
vplce is not a global anymore
vince is not a global variable anymore
Using for loops
Some warning removed
spritesx, spritesy, spritesz are not global anymore
Moved maskwallcnt to the engine_state struct
mask wall is not a global anymore