game: fix post-restart mall open flow
This commit is contained in:
@@ -5698,8 +5698,9 @@ void CHARACTER::ReqSafeboxLoad(const char* pszPassword)
|
||||
}
|
||||
|
||||
int iPulse = thecore_pulse();
|
||||
const int last_safebox_load_time = GetSafeboxLoadTime();
|
||||
|
||||
if (iPulse - GetSafeboxLoadTime() < PASSES_PER_SEC(10))
|
||||
if (last_safebox_load_time > 0 && iPulse - last_safebox_load_time < PASSES_PER_SEC(10))
|
||||
{
|
||||
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<창고> 창고를 닫은지 10초 안에는 열 수 없습니다."));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user