mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-18 22:12:31 +00:00
Update am_map.c
This commit is contained in:
parent
0557123032
commit
c29ce1158a
1 changed files with 2 additions and 2 deletions
|
|
@ -99,8 +99,8 @@ static const UINT8 NOCLIMBYELLOWS = (11*16);
|
|||
#define FTOM(x) FixedMul(((x)<<FRACBITS),scale_ftom)
|
||||
#define MTOF(x) (FixedMul((x),scale_mtof)>>FRACBITS)
|
||||
// translates between frame-buffer and map coordinates
|
||||
#define CXMTOF(x) (f_x - (f_x/2) + MTOF((x)-m_x))
|
||||
#define CYMTOF(y) (f_y - (f_y/2) + (f_h - MTOF((y)-m_y)))
|
||||
#define CXMTOF(x) (f_x + MTOF((x)-m_x))
|
||||
#define CYMTOF(y) (f_y + (f_h - MTOF((y)-m_y)))
|
||||
|
||||
#define MAPBITS (FRACBITS-4)
|
||||
#define FRACTOMAPBITS (FRACBITS-MAPBITS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue