changeset 1888:cbeb25a148ad

getting rid of "signed value is out of range for enum constant" errors for Tileset_NULL and PLAYER_SKILL_INVALID
author Grumpy7
date Sat, 19 Oct 2013 08:21:57 +0200
parents 25655815623a
children 397059718a9a 39b6d789cbfc
files Player.h TileFrameTable.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Player.h	Sat Oct 19 08:15:08 2013 +0200
+++ b/Player.h	Sat Oct 19 08:21:57 2013 +0200
@@ -220,6 +220,8 @@
   CHARACTER_ATTRIBUTE_SKILL_LEARNING    = 46
 };
 
+#pragma warning( push )
+#pragma warning( disable: 4341 )
 /*  328 */
 enum PLAYER_SKILL_TYPE: signed __int8
 {
@@ -264,6 +266,7 @@
   PLAYER_SKILL_MISC = 38,
   PLAYER_SKILL_INVALID = -1
 };
+#pragma warning( pop )
 
 /*  329 */
 enum PLAYER_CLASS_TYPE: unsigned __int8
--- a/TileFrameTable.h	Sat Oct 19 08:15:08 2013 +0200
+++ b/TileFrameTable.h	Sat Oct 19 08:21:57 2013 +0200
@@ -20,7 +20,8 @@
   TILE_DESC_SCROLL_RIGHT = 0x2000,
 };
 
-
+#pragma warning( push )
+#pragma warning( disable: 4341 )
 enum Tileset: signed __int16
 {
   Tileset_Grass = 0,
@@ -36,6 +37,7 @@
   Tileset_RoadGrassCobble = 10,
   Tileset_NULL =-1
 };
+#pragma warning( pop )
 
 /*   48 */
 #pragma pack(push, 1)