diff 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
line wrap: on
line diff
--- a/MM7.h	Wed May 29 03:21:19 2013 +0200
+++ b/MM7.h	Wed May 29 19:55:25 2013 +0100
@@ -23,7 +23,7 @@
 #define PID(type, id) (unsigned int)((((8 * (id))) | (type)) & 0xFFFF)  // packed id
 #define PID_TYPE(pid) (unsigned int)((pid) & 7)                         // extract type
 #define PID_ID(pid)   (unsigned int)(((pid) & 0xFFFF) >> 3)             // extract value
-
+inline int round(float x) { return (floor(x + 0.5)); }
 
 typedef unsigned __int16 _WORD;
 typedef unsigned __int64 _QWORD;