Update am_map.c

This commit is contained in:
Jimita 2018-12-12 19:59:21 -02:00 committed by GitHub
parent a5874019cb
commit e628d98f20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,8 +99,8 @@ static const UINT8 NOCLIMBYELLOWS = (11*16);
#define FTOM(x) FixedMul(((x)<<FRACBITS),scale_ftom) #define FTOM(x) FixedMul(((x)<<FRACBITS),scale_ftom)
#define MTOF(x) (FixedMul((x),scale_mtof)>>FRACBITS) #define MTOF(x) (FixedMul((x),scale_mtof)>>FRACBITS)
// translates between frame-buffer and map coordinates // translates between frame-buffer and map coordinates
#define CXMTOF(x) (f_x - (f_x/2) + MTOF((x)-m_x)) #define CXMTOF(x) (f_x + MTOF((x)-m_x))
#define CYMTOF(y) (f_y - (f_y/2) + (f_h - MTOF((y)-m_y))) #define CYMTOF(y) (f_y + (f_h - MTOF((y)-m_y)))
#define MAPBITS (FRACBITS-4) #define MAPBITS (FRACBITS-4)
#define FRACTOMAPBITS (FRACBITS-MAPBITS) #define FRACTOMAPBITS (FRACBITS-MAPBITS)