diff options
Diffstat (limited to 'internal/game/core_login_char.go')
| -rw-r--r-- | internal/game/core_login_char.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/core_login_char.go b/internal/game/core_login_char.go index 41e25b8..479e397 100644 --- a/internal/game/core_login_char.go +++ b/internal/game/core_login_char.go @@ -111,6 +111,10 @@ func (g *Game) connectCharacter(sess *net.Session, name string) { g.showMenu(sess) return } + // Log the disk state before identity backfill, missing-room rescue, or + // recording this login's visit can change it. Paired with shutdown saves, + // this distinguishes lost saves from loading a different/older file. + log.Printf("character loaded: %s room=%d explored=%d file=%s", p.Name, p.RoomID, p.Stats.RoomsVisited.Len(), g.AccountStore.CharPath(name)) g.adoptCharacterIdentity(p, sess.Account.Name) if g.Hub != nil { |
