// This sets some fields to <any> when they are not valid for the current map format private void AdjustForMapFormat() { if ((General.Map != null) && (General.Map.FormatInterface != null)) { // Adjust as needed for map format if (!General.Map.FormatInterface.HasThingHeight) { thingzheight = int.MinValue; } if (!General.Map.FormatInterface.HasThingAction) { thingaction = -1; } if (!General.Map.FormatInterface.HasThingTag) { thingtag = -1; } if (!General.Map.FormatInterface.HasActionArgs) { for (int i = 0; i < Thing.NUM_ARGS; i++) { thingargs[i] = -1; } } if (!General.Map.FormatInterface.HasCustomFields) { customfields.Clear(); } } }