Mercurial > mm7
comparison MM7.h @ 1117:ad89d1905b48
* stru6_stru1_indoor_sw_billboard::sub_47802A() cleaned, fireball working
* stru6_stru1_indoor_sw_billboard struct changes
* added inline round()
author | zipi |
---|---|
date | Wed, 29 May 2013 19:55:25 +0100 |
parents | c45d51b3f4f4 |
children | aa706cde7fda |
comparison
equal
deleted
inserted
replaced
1116:6a4d654ef9fb | 1117:ad89d1905b48 |
---|---|
21 #define BYTE3(a) (*((unsigned char *)&a + 3)) | 21 #define BYTE3(a) (*((unsigned char *)&a + 3)) |
22 | 22 |
23 #define PID(type, id) (unsigned int)((((8 * (id))) | (type)) & 0xFFFF) // packed id | 23 #define PID(type, id) (unsigned int)((((8 * (id))) | (type)) & 0xFFFF) // packed id |
24 #define PID_TYPE(pid) (unsigned int)((pid) & 7) // extract type | 24 #define PID_TYPE(pid) (unsigned int)((pid) & 7) // extract type |
25 #define PID_ID(pid) (unsigned int)(((pid) & 0xFFFF) >> 3) // extract value | 25 #define PID_ID(pid) (unsigned int)(((pid) & 0xFFFF) >> 3) // extract value |
26 | 26 inline int round(float x) { return (floor(x + 0.5)); } |
27 | 27 |
28 typedef unsigned __int16 _WORD; | 28 typedef unsigned __int16 _WORD; |
29 typedef unsigned __int64 _QWORD; | 29 typedef unsigned __int64 _QWORD; |
30 | 30 |
31 | 31 |