not quite working
This commit is contained in:
parent
b1c2d6c477
commit
6db0105744
@ -153,6 +153,7 @@ void castRay(s16 angle, s16 column){
|
|||||||
|
|
||||||
|
|
||||||
//Wall height calcs
|
//Wall height calcs
|
||||||
|
shortestDist = fix16Mul(dx, shortestDist);
|
||||||
fix16 wallHeightFix16 = fix16Div(FIX16(SCREEN_HEIGHT), (shortestDist + FIX16(1)));
|
fix16 wallHeightFix16 = fix16Div(FIX16(SCREEN_HEIGHT), (shortestDist + FIX16(1)));
|
||||||
wallHeightFix16 = fix16Mul(wallHeightFix16, WALL_HEIGHT_SCALE);
|
wallHeightFix16 = fix16Mul(wallHeightFix16, WALL_HEIGHT_SCALE);
|
||||||
int wallHeight = fix16ToInt(wallHeightFix16);
|
int wallHeight = fix16ToInt(wallHeightFix16);
|
||||||
|
Loading…
Reference in New Issue
Block a user