HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
Good day,
I have a problem with starting the kernel after compiling the Ikarus offline shop. The kernel does not start.
gdb:
0x0091cfa1 v event_create_ex (func=0xa14060 <offlineshop::func_offlineshop_update_duration(boost::intrusive_ptr<event>, long)>,
info=0x20d91018, when=1500) na event.cpp:31
31 new_event->q_el = cxx_q.Enqueue(new_event, when, thecore_heart->pulse);
(gdb)
How i can fix it?
1.
2.
3.
4.
Thank you
I have a problem with starting the kernel after compiling the Ikarus offline shop. The kernel does not start.
gdb:
0x0091cfa1 v event_create_ex (func=0xa14060 <offlineshop::func_offlineshop_update_duration(boost::intrusive_ptr<event>, long)>,
info=0x20d91018, when=1500) na event.cpp:31
31 new_event->q_el = cxx_q.Enqueue(new_event, when, thecore_heart->pulse);
(gdb)
How i can fix it?
Kod:
EVENTFUNC(func_offlineshop_update_duration)
{
offlineshop::GetManager().UpdateShopsDuration();
offlineshop::GetManager().UpdateAuctionsDuration();
offlineshop::GetManager().ClearSearchTimeMap();
offlineshop::GetManager().ClearOfferTimeMap();
return OFFLINESHOP_DURATION_UPDATE_TIME;
}
1.
Kod:
void CShopManager::UpdateShopsDuration()
{
SHOPMAP::iterator it = m_mapShops.begin();
for (; it != m_mapShops.end(); it++)
{
CShop& shop = it->second;
if(shop.GetDuration() > 0)
shop.DecreaseDuration();
}
}
2.
Kod:
void CShopManager::UpdateAuctionsDuration()
{
AUCTIONMAP::iterator it = m_mapAuctions.begin();
for (; it != m_mapAuctions.end(); it++)
{
CAuction& auction = it->second;
auction.DecreaseDuration();
}
}
}
3.
Kod:
void CShopManager::ClearSearchTimeMap()
{
m_searchTimeMap.clear();
m_offerCooldownMap.clear();
}
4.
Kod:
4.
void CShopManager::ClearOfferTimeMap()
{
m_offerTimeMap.clear();
}
Thank you
Son düzenleme:
