Skip to content

Commit

Permalink
Update spawn detection in SceneList, because some maps were not consi…
Browse files Browse the repository at this point in the history
…dered as playable
  • Loading branch information
Byak0 committed Sep 17, 2024
1 parent a2dac09 commit 04774df
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Alliance.Client/_Module/SubModule.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Module>
<Id value="Alliance" />
<Name value="Alliance" />
<Version value="v0.1.8.0" />
<Version value="v0.1.8.2" />
<ModuleCategory value="Multiplayer" />
<DependedModules>
<DependedModule Id="Native" />
Expand Down
2 changes: 1 addition & 1 deletion Alliance.Common/CommonProps.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<AllianceVersion>0.1.8.0</AllianceVersion>
<AllianceVersion>0.1.8.2</AllianceVersion>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion Alliance.Common/Utilities/SceneList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ await Task.Run(() =>
Name = sceneNode.Attributes["name"].Value,
HasSpawnForAttacker = xmlDoc.SelectNodes("//game_entity[.//tag[@name='attacker'] and @name='mp_spawnpoint' or .//tag[@name='attacker'] and .//tag[@name='spawnpoint'] or @prefab='mp_spawnpoint_attacker']").Count > 0,
HasSpawnForDefender = xmlDoc.SelectNodes("//game_entity[.//tag[@name='defender'] and @name='mp_spawnpoint' or .//tag[@name='defender'] and .//tag[@name='spawnpoint'] or @prefab='mp_spawnpoint_defender' or @prefab='skirmish_start_spawn']").Count > 0,
HasGenericSpawn = xmlDoc.SelectNodes("//game_entity[@name='mp_spawnpoint' or @prefab='mp_spawnpoint'] | //tag[@name='spawnpoint']").Count > 0,
HasGenericSpawn = xmlDoc.SelectNodes("//game_entity[@name='mp_spawnpoint' or @name='mp_spawnpoint_attacker' or @name='mp_spawnpoint_defender' or @prefab='mp_spawnpoint' or @prefab='mp_spawnpoint_attacker' or @prefab='mp_spawnpoint_defender'] | //tag[@name='spawnpoint']").Count > 0,
HasSpawnVisual = xmlDoc.SelectNodes("//game_entity[@name='spawn_visual'] | //game_entity[@prefab='spawn_visual']").Count > 0,
HasNavmesh = File.Exists(Path.Combine(dir, "navmesh.bin")),
HasSAEPos = xmlDoc.SelectNodes($"//game_entity[@prefab='{SaeCommonConstants.FDC_QUICK_PLACEMENT_POS_PREFAB_NAME}']").Count > 0
Expand Down
2 changes: 1 addition & 1 deletion Alliance.Editor/_Module/SubModule.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Module>
<Id value="Alliance.Editor" />
<Name value="Alliance.Editor" />
<Version value="v0.1.8.0" />
<Version value="v0.1.8.2" />
<ModuleCategory value="Singleplayer" />
<DependedModules>
<DependedModule Id="Native" />
Expand Down
2 changes: 1 addition & 1 deletion Alliance.Server/_Module/SubModule.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Module>
<Id value="Alliance" />
<Name value="Alliance" />
<Version value="v0.1.8.0" />
<Version value="v0.1.8.2" />
<ModuleCategory value="Multiplayer" />
<DependedModules>
<DependedModule Id="Native" />
Expand Down

0 comments on commit 04774df

Please sign in to comment.