mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-04 01:52:26 +00:00
Fix issue with Return Home button always being available
This commit is contained in:
parent
2bee906784
commit
45ef740244
@ -103,7 +103,7 @@ void WorldDatabase::GetCharSelectInfo(uint32 account_id, CharacterSelect_Struct*
|
|||||||
|
|
||||||
if (RuleB(World, EnableReturnHomeButton)) {
|
if (RuleB(World, EnableReturnHomeButton)) {
|
||||||
int now = time(nullptr);
|
int now = time(nullptr);
|
||||||
if ((now - atoi(row[8])) >= RuleI(World, MinOfflineTimeToReturnHome))
|
if ((now - atoi(row[7])) >= RuleI(World, MinOfflineTimeToReturnHome))
|
||||||
cs->gohome[char_num] = 1;
|
cs->gohome[char_num] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user