comparison Engine/Serialization/LegacyImages.cpp @ 2567:d569340b05ff

Few constants changed into enum values
author a.parshin
date Thu, 21 May 2015 01:50:59 +0200
parents 117c219bf913
children a76d408c5132
comparison
equal deleted inserted replaced
2566:30eb6dcac768 2567:d569340b05ff
242 memset(this, 0, sizeof(*this)); 242 memset(this, 0, sizeof(*this));
243 243
244 this->uItemID = item->uItemID; 244 this->uItemID = item->uItemID;
245 this->uEnchantmentType = item->uEnchantmentType; 245 this->uEnchantmentType = item->uEnchantmentType;
246 this->m_enchantmentStrength = item->m_enchantmentStrength; 246 this->m_enchantmentStrength = item->m_enchantmentStrength;
247 this->uSpecEnchantmentType = item->uSpecEnchantmentType; 247 this->special_enchantment = item->special_enchantment;
248 this->uNumCharges = item->uNumCharges; 248 this->uNumCharges = item->uNumCharges;
249 this->uAttributes = item->uAttributes; 249 this->uAttributes = item->uAttributes;
250 this->uBodyAnchor = item->uBodyAnchor; 250 this->uBodyAnchor = item->uBodyAnchor;
251 this->uMaxCharges = item->uMaxCharges; 251 this->uMaxCharges = item->uMaxCharges;
252 this->uHolderPlayer = item->uHolderPlayer; 252 this->uHolderPlayer = item->uHolderPlayer;
257 void ItemGen_Image_MM7::Deserialize(ItemGen *item) 257 void ItemGen_Image_MM7::Deserialize(ItemGen *item)
258 { 258 {
259 item->uItemID = this->uItemID; 259 item->uItemID = this->uItemID;
260 item->uEnchantmentType = this->uEnchantmentType; 260 item->uEnchantmentType = this->uEnchantmentType;
261 item->m_enchantmentStrength = this->m_enchantmentStrength; 261 item->m_enchantmentStrength = this->m_enchantmentStrength;
262 item->uSpecEnchantmentType = this->uSpecEnchantmentType; 262 item->special_enchantment = (ITEM_ENCHANTMENT)this->special_enchantment;
263 item->uNumCharges = this->uNumCharges; 263 item->uNumCharges = this->uNumCharges;
264 item->uAttributes = this->uAttributes; 264 item->uAttributes = this->uAttributes;
265 item->uBodyAnchor = this->uBodyAnchor; 265 item->uBodyAnchor = this->uBodyAnchor;
266 item->uMaxCharges = this->uMaxCharges; 266 item->uMaxCharges = this->uMaxCharges;
267 item->uHolderPlayer = this->uHolderPlayer; 267 item->uHolderPlayer = this->uHolderPlayer;