diff options
author | Brian <runningnak3d@gmail.com> | 2009-12-20 09:27:44 -0700 |
---|---|---|
committer | Brian <runningnak3d@gmail.com> | 2009-12-20 09:27:44 -0700 |
commit | ea785c9788203b4a7d57ae37f21c45ff0c7a4167 (patch) | |
tree | 96e7e85ca557e1cf96087dc6892b232683a9b3c2 | |
parent | 7c9f6b4bc37eec7b94aaba1cd8912bd5c0054e2a (diff) |
* Added support for GO type 6 (TRAP) to have a negative value in data6
* This will allow proper data to be used
--HG--
branch : trunk
-rw-r--r-- | sql/updates/6645_world_gameobject_template.sql | 5 | ||||
-rw-r--r-- | sql/world.sql | 2 | ||||
-rw-r--r-- | src/game/GameObject.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/sql/updates/6645_world_gameobject_template.sql b/sql/updates/6645_world_gameobject_template.sql new file mode 100644 index 00000000000..aca6bc97e11 --- /dev/null +++ b/sql/updates/6645_world_gameobject_template.sql @@ -0,0 +1,5 @@ +-- Alter data6 column in gameobject_template to allow signed value +ALTER TABLE `gameobject_template` CHANGE `data6` `data6temp` INT(10); +ALTER TABLE `gameobject_template` ADD `data6` INT SIGNED NOT NULL AFTER `data5`; +UPDATE `gameobject_template` SET `data6` = `data6temp`; +ALTER TABLE `gameobject_template` DROP `data6temp`; diff --git a/sql/world.sql b/sql/world.sql index 3de75d0c3dc..2262e677378 100644 --- a/sql/world.sql +++ b/sql/world.sql @@ -1147,7 +1147,7 @@ CREATE TABLE `gameobject_template` ( `data3` int(10) unsigned NOT NULL default '0', `data4` int(10) unsigned NOT NULL default '0', `data5` int(10) unsigned NOT NULL default '0', - `data6` int(10) unsigned NOT NULL default '0', + `data6` int(10) signed NOT NULL default '0', `data7` int(10) unsigned NOT NULL default '0', `data8` int(10) unsigned NOT NULL default '0', `data9` int(10) unsigned NOT NULL default '0', diff --git a/src/game/GameObject.h b/src/game/GameObject.h index 1e9c139417c..358af95a9be 100644 --- a/src/game/GameObject.h +++ b/src/game/GameObject.h @@ -129,7 +129,7 @@ struct GameObjectInfo uint32 spellId; //3 uint32 charges; //4 need respawn (if > 0) uint32 cooldown; //5 time in secs - uint32 autoCloseTime; //6 + int32 autoCloseTime; //6 uint32 startDelay; //7 uint32 serverOnly; //8 uint32 stealthed; //9 |