[PATCH] Offline-hint not shown after diplomacy change
When a player goes offline, it will say "playername (Offline)" when you click its entities.
But if there is a diplomacy change, the name will be overwritten again without the offline-hint.
Related #3253.
Change History
(10)
Keywords: |
review patch added
|
Milestone: |
Backlog → Alpha 20
|
Summary: |
Offline-hint not shown after diplomacy change → [PATCH] Offline-hint not shown after diplomacy change
|
Keywords: |
review added; simple removed
|
Owner: |
set to elexis
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Thanks for the patch. You correctly identified the place where the bug occurs. Your patch might work, but you should not fix it in
updateDiplomacy
, since it is a problem withgetPlayerData
.A player is online if and only if he's found in
g_PlayerAssignments
. So you can add the property"offline": false
to the player object and set it totrue
in theg_PlayerAssignments
loop of that function (unless I'm completely mistaken).