parent
3da4030ac0
commit
9fe6f7a406
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ void
|
||||||
update_timeused_login(time_t now)
|
update_timeused_login(time_t now)
|
||||||
{
|
{
|
||||||
struct natstr *natp = getnatp(player->cnum);
|
struct natstr *natp = getnatp(player->cnum);
|
||||||
time_t midnight_secs = seconds_since_midnight(player->lasttime);
|
time_t midnight_secs = seconds_since_midnight(now);
|
||||||
|
|
||||||
if (now - natp->nat_last_logout > midnight_secs) {
|
if (now - natp->nat_last_logout > midnight_secs) {
|
||||||
natp->nat_timeused = 0;
|
natp->nat_timeused = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue