Shame about the holidays..another_commander wrote:No, sorry. The problem is that my vacation is now over (:-(), so I'm back to "not much time for coding" mode. Unless someone adds the "override for all stations default" parameter, this stays as is for now.
The good news though is that for the core game it's only three stations that need to have their entries modified.
Here's the patch for the global flag - it first loads and sets the default, if any (defaulting to NO) and then loads the per-station override flag, defaulting to the default.
Code: Select all
micha@mamba:~/src/oolite/trunk.20080926.2$ cat micha_globalDockingClearanceFlag.patch
Index: src/Core/Entities/StationEntity.m
===================================================================
--- src/Core/Entities/StationEntity.m (revision 1771)
+++ src/Core/Entities/StationEntity.m (working copy)
@@ -757,7 +757,8 @@
equipmentPriceFactor = OOMax_f(equipmentPriceFactor, 0.5f);
hasNPCTraffic = [dict fuzzyBooleanForKey:@"has_npc_traffic" defaultValue:YES];
#ifdef DOCKING_CLEARANCE_ENABLED
- requiresDockingClearance = [dict boolForKey:@"requires_docking_clearance" defaultValue:NO];
+ requiresDockingClearance = [[UNIVERSE currentSystemData] boolForKey:@"requires_docking_clearance" defaultValue:NO];
+ requiresDockingClearance = [dict boolForKey:@"requires_docking_clearance" defaultValue:requiresDockingClearance];
#endif
if ([self isRotatingStation] && [self hasNPCTraffic])