diff --git a/NHSE.WinForms/Subforms/Map/FieldItemEditor.cs b/NHSE.WinForms/Subforms/Map/FieldItemEditor.cs index b20dd4d..49c0148 100644 --- a/NHSE.WinForms/Subforms/Map/FieldItemEditor.cs +++ b/NHSE.WinForms/Subforms/Map/FieldItemEditor.cs @@ -748,7 +748,10 @@ private void LB_Items_SelectedIndexChanged(object sender, EventArgs e) if (LB_Items.SelectedIndex < 0) return; LoadIndex(LB_Items.SelectedIndex); - ReloadBuildingsTerrain(); + + // View location snap has changed the view. Reload everything + LoadItemGridAcre(); + ReloadMapBackground(); } private void LoadIndex(int index) @@ -765,6 +768,11 @@ private void LoadIndex(int index) NUD_TypeArg.Value = b.TypeArg; NUD_UniqueID.Value = b.UniqueID; Loading = false; + + // -32 for relative offset on map (buildings can be placed on the exterior ocean acres) + // -16 to put it in the center of the view + const int shift = 48; + View.SetViewTo(b.X - shift, b.Y - shift); } private void NUD_BuildingType_ValueChanged(object sender, EventArgs e)