mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2024-12-12 10:13:58 +02:00
Fix incorrect param order ConfigurePlayerForceRelationships
This commit is contained in:
parent
f90c30be1f
commit
2437b8a0f4
@ -408,7 +408,7 @@ function ApplyRuntimeChanges(oarc_setting_index)
|
||||
-- Handle changing enable_friendly_teams or enable_cease_fire
|
||||
elseif (oarc_setting_index == "gameplay.enable_friendly_teams") or
|
||||
(oarc_setting_index == "gameplay.enable_cease_fire") then
|
||||
ConfigurePlayerForceRelationships(storage.ocfg.gameplay.enable_friendly_teams,
|
||||
storage.ocfg.gameplay.enable_cease_fire)
|
||||
ConfigurePlayerForceRelationships(storage.ocfg.gameplay.enable_cease_fire,
|
||||
storage.ocfg.gameplay.enable_friendly_teams)
|
||||
end
|
||||
end
|
@ -1483,8 +1483,8 @@ function CreatePlayerForce(force_name)
|
||||
new_force.friendly_fire = storage.ocfg.gameplay.enable_friendly_fire
|
||||
-- SetCeaseFireBetweenAllPlayerForces()
|
||||
-- SetFriendlyBetweenAllPlayerForces()
|
||||
ConfigurePlayerForceRelationships(storage.ocfg.gameplay.enable_friendly_teams,
|
||||
storage.ocfg.gameplay.enable_cease_fire)
|
||||
ConfigurePlayerForceRelationships(storage.ocfg.gameplay.enable_cease_fire,
|
||||
storage.ocfg.gameplay.enable_friendly_teams)
|
||||
-- ConfigureEnemyForceRelationshipsForNewPlayerForce(new_force)
|
||||
else
|
||||
log("TOO MANY FORCES!!! - CreatePlayerForce()")
|
||||
|
Loading…
Reference in New Issue
Block a user