diff options
author | HoraK-FDF <horak-fdf@web.de> | 2025-04-02 20:38:38 +0000 |
---|---|---|
committer | HoraK-FDF <horak-fdf@web.de> | 2025-04-02 20:38:38 +0000 |
commit | b5ab3d6d25c024fc120746514edfff33c55074d2 (patch) | |
tree | e393e9457412484df6901ba1a8fc3927763ae172 /src/map | |
parent | 8595a90ed92ffbea9f81dc413f4fb6426ae0986d (diff) | |
download | tmwa-master.tar.gz tmwa-master.tar.bz2 tmwa-master.tar.xz tmwa-master.zip |
better init them to zero even though activity check logic should do that if its higher than a server variable can hold.
Approved-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 9ef70fe..ecfd50e 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -871,6 +871,11 @@ int pc_authok(AccountId id, int login_id2, ClientVersion client_version, sd->quick_regeneration_sp.amount = 0; sd->heal_xp = 0; sd->max_weight_override = 0; + sd->activity.kills = 0; + sd->activity.casts = 0; + sd->activity.items_used = 0; + sd->activity.tiles_walked = 0; + sd->activity.attacks = 0; sd->canact_tick = tick; sd->canmove_tick = tick; sd->attackabletime = tick; |