Fix wrong time type

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

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

@ -651,9 +651,9 @@ public :
bool getStats(const std::string &stats, std::string &final );
/// 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
inline void setMaxSapLoad(float value)
@ -946,7 +946,7 @@ private:
/// string associated with this item
std::string _PhraseId;
/// tick when the proc will be available again
double _LatencyEndDate;
NLMISC::TGameCycle _LatencyEndDate;
/// image of the item in bag / equipment
// uint16 _SlotImage;
NLMISC::TGameCycle _TotalSaleCycle;

Loading…
Cancel
Save