not quite working

This commit is contained in:
Samuel Walker 2024-09-01 08:16:05 -06:00
parent b1c2d6c477
commit 6db0105744

View File

@ -153,6 +153,7 @@ void castRay(s16 angle, s16 column){
//Wall height calcs
shortestDist = fix16Mul(dx, shortestDist);
fix16 wallHeightFix16 = fix16Div(FIX16(SCREEN_HEIGHT), (shortestDist + FIX16(1)));
wallHeightFix16 = fix16Mul(wallHeightFix16, WALL_HEIGHT_SCALE);
int wallHeight = fix16ToInt(wallHeightFix16);