1
0
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:
Oarcinae 2024-10-27 20:11:59 -04:00
parent f90c30be1f
commit 2437b8a0f4
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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()")