This commit is contained in:
2025-11-25 14:18:57 -07:00
parent fb034b9b93
commit a9b2a3b7ff

View File

@@ -108,7 +108,6 @@ func NewGameplayScreen(screenWidth, screenHeight int, mapManager *maps.Manager,
}
func (g *GameplayScreen) Update(input GameplayInput, delta time.Duration) {
// clamp delta to prevent physics issues from lag spikes
if delta > 100*time.Millisecond {
delta = 100 * time.Millisecond
}
@@ -389,7 +388,6 @@ func (g *GameplayScreen) LoadState(state *save.GameState) {
}
if err := g.mapManager.SetCurrentMap(mapID); err != nil {
// Fallback to plains if map not found
g.mapManager.SetCurrentMap("plains")
}
currentMap := g.mapManager.CurrentMap()