summaryrefslogtreecommitdiff
path: root/src/map/unit.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-12-03 04:20:55 +0100
committerHaru <haru@dotalux.com>2016-12-03 15:38:58 +0100
commitc1b4b0b2fb1066087e928e9440b40edd185b188e (patch)
tree61fb624792d54db3668601df7f95f03eb30d8baf /src/map/unit.h
parenta222f21b459eb6abc0862695526c1d15361a99e0 (diff)
downloadhercules-c1b4b0b2fb1066087e928e9440b40edd185b188e.tar.gz
hercules-c1b4b0b2fb1066087e928e9440b40edd185b188e.tar.bz2
hercules-c1b4b0b2fb1066087e928e9440b40edd185b188e.tar.xz
hercules-c1b4b0b2fb1066087e928e9440b40edd185b188e.zip
Remove the platform-dependent variables from struct status_data
`struct status_data::class_` was platform dependent since c30bb75ec50624429bff7b4106db4be0fda366d6 in order to silence some compile warnings (uint32 on 64 bit builds and uint16 on 32 bit builds). It's now been changed to the correct type, int32, on all platforms. Since the change has potential to silently break third party code, the variable was renamed to `class`. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/unit.h')
-rw-r--r--src/map/unit.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/map/unit.h b/src/map/unit.h
index a3241a4b9..d065b3d57 100644
--- a/src/map/unit.h
+++ b/src/map/unit.h
@@ -80,11 +80,7 @@ struct unit_data {
};
struct view_data {
-#ifdef __64BIT__
- uint32 class_; // FIXME: This shouldn't really depend on the architecture.
-#else // not __64BIT__
- uint16 class_;
-#endif // __64BIT__
+ int16 class;
uint16 weapon,
shield, //Or left-hand weapon.
robe,