Fix wrong time type

ryzomclassic-develop
kaetemi 4 years ago
parent 4ae411968e
commit e9feca648a

@ -1085,7 +1085,7 @@ void CGameItem::resetEnchantment()
_SapLoad = 0; _SapLoad = 0;
_Enchantment.clear(); _Enchantment.clear();
contReset( _Enchantment ); contReset( _Enchantment );
_LatencyEndDate = 0.0; _LatencyEndDate = 0;
if (getInventory() != NULL) if (getInventory() != NULL)
getInventory()->onItemChanged(getInventorySlot(), INVENTORIES::TItemChangeFlags(INVENTORIES::itc_enchant)); getInventory()->onItemChanged(getInventorySlot(), INVENTORIES::TItemChangeFlags(INVENTORIES::itc_enchant));
@ -1350,7 +1350,7 @@ void CGameItem::clear()
_Destroyable = true; _Destroyable = true;
_Dropable = true; _Dropable = true;
// _SlotImage = 0xFFFF; // _SlotImage = 0xFFFF;
_LatencyEndDate = 0.0; _LatencyEndDate = 0;
// _Parent = NULL; // _Parent = NULL;
_Inventory = NULL; _Inventory = NULL;
_InventorySlot = INVENTORIES::INVALID_INVENTORY_SLOT; _InventorySlot = INVENTORIES::INVALID_INVENTORY_SLOT;

@ -651,9 +651,9 @@ public :
bool getStats(const std::string &stats, std::string &final ); bool getStats(const std::string &stats, std::string &final );
/// accessors to the action latency end date /// accessors to the action latency end date
inline double getLatencyEndDate(){ return _LatencyEndDate; } inline NLMISC::TGameCycle getLatencyEndDate(){ return _LatencyEndDate; }
inline void setLatencyEndDate( double latencyEndDate ){ _LatencyEndDate = latencyEndDate; } inline void setLatencyEndDate( NLMISC::TGameCycle latencyEndDate ){ _LatencyEndDate = latencyEndDate; }
/// set the max sap load craft parameter /// set the max sap load craft parameter
inline void setMaxSapLoad(float value) inline void setMaxSapLoad(float value)
@ -946,7 +946,7 @@ private:
/// string associated with this item /// string associated with this item
std::string _PhraseId; std::string _PhraseId;
/// tick when the proc will be available again /// tick when the proc will be available again
double _LatencyEndDate; NLMISC::TGameCycle _LatencyEndDate;
/// image of the item in bag / equipment /// image of the item in bag / equipment
// uint16 _SlotImage; // uint16 _SlotImage;
NLMISC::TGameCycle _TotalSaleCycle; NLMISC::TGameCycle _TotalSaleCycle;

Loading…
Cancel
Save