Use shorts for all positions
This commit is contained in:
parent
fdf1eb22f4
commit
6bc22473c7
|
@ -185,15 +185,15 @@ JMP2r
|
||||||
@ray-pos ( angle* -- x* y* )
|
@ray-pos ( angle* -- x* y* )
|
||||||
|
|
||||||
,&angle STR2
|
,&angle STR2
|
||||||
#ff01
|
#0100 #0001
|
||||||
&r
|
&r
|
||||||
#00 OVR [ LIT2 &angle $2 ] SWP2 ;raycast JSR2
|
DUP2 [ LIT2 &angle $2 ] SWP2 ;raycast JSR2
|
||||||
DUP2 ,&y STR2
|
DUP2 ,&y STR2
|
||||||
OVR2 ,&x STR2
|
OVR2 ,&x STR2
|
||||||
;get-tile JSR2 ,&end JCN
|
;get-tile JSR2 ,&end JCN
|
||||||
INC GTHk ,&r JCN
|
INC2 GTH2k ,&r JCN
|
||||||
&end
|
&end
|
||||||
POP2
|
POP2 POP2
|
||||||
( res ) [ LIT2 &x $2 ] [ LIT2 &y $2 ]
|
( res ) [ LIT2 &x $2 ] [ LIT2 &y $2 ]
|
||||||
|
|
||||||
JMP2r
|
JMP2r
|
||||||
|
|
Loading…
Reference in New Issue