Remove hardcoded mpspawn owner lint check
Use RequiresSpecificOwner to enforce the owner that owns the world instead. Require 'Neutral' in the official mods accordingly.
This commit is contained in:
@@ -91,11 +91,6 @@ namespace OpenRA.Mods.Common.Lint
|
|||||||
var ownerName = ownerInit.PlayerName;
|
var ownerName = ownerInit.PlayerName;
|
||||||
if (!playerNames.Contains(ownerName))
|
if (!playerNames.Contains(ownerName))
|
||||||
emitError("Actor {0} is owned by unknown player {1}.".F(kv.Key, ownerName));
|
emitError("Actor {0} is owned by unknown player {1}.".F(kv.Key, ownerName));
|
||||||
else if (kv.Value.Value == "mpspawn" && !players[ownerName].OwnsWorld)
|
|
||||||
{
|
|
||||||
emitError("Actor {0} needs to be owned by the player that owns the world. ".F(kv.Key) +
|
|
||||||
"Use the `Spawn` and `LockSpawn` player properties to force players onto a particular spawn instead.");
|
|
||||||
}
|
|
||||||
|
|
||||||
RequiresSpecificOwnersInfo info;
|
RequiresSpecificOwnersInfo info;
|
||||||
if (actorsWithRequiredOwner.TryGetValue(kv.Value.Value, out info))
|
if (actorsWithRequiredOwner.TryGetValue(kv.Value.Value, out info))
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ mpspawn:
|
|||||||
QuantizedFacings: 1
|
QuantizedFacings: 1
|
||||||
MapEditorData:
|
MapEditorData:
|
||||||
Categories: System
|
Categories: System
|
||||||
|
RequiresSpecificOwners:
|
||||||
|
ValidOwnerNames: Neutral
|
||||||
|
|
||||||
waypoint:
|
waypoint:
|
||||||
Interactable:
|
Interactable:
|
||||||
|
|||||||
@@ -152,6 +152,8 @@ mpspawn:
|
|||||||
QuantizedFacings: 1
|
QuantizedFacings: 1
|
||||||
MapEditorData:
|
MapEditorData:
|
||||||
Categories: System
|
Categories: System
|
||||||
|
RequiresSpecificOwners:
|
||||||
|
ValidOwnerNames: Neutral
|
||||||
|
|
||||||
waypoint:
|
waypoint:
|
||||||
Interactable:
|
Interactable:
|
||||||
|
|||||||
@@ -373,6 +373,8 @@ mpspawn:
|
|||||||
QuantizedFacings: 1
|
QuantizedFacings: 1
|
||||||
MapEditorData:
|
MapEditorData:
|
||||||
Categories: System
|
Categories: System
|
||||||
|
RequiresSpecificOwners:
|
||||||
|
ValidOwnerNames: Neutral
|
||||||
|
|
||||||
waypoint:
|
waypoint:
|
||||||
Interactable:
|
Interactable:
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ mpspawn:
|
|||||||
QuantizedFacings: 1
|
QuantizedFacings: 1
|
||||||
MapEditorData:
|
MapEditorData:
|
||||||
Categories: System
|
Categories: System
|
||||||
|
RequiresSpecificOwners:
|
||||||
|
ValidOwnerNames: Neutral
|
||||||
|
|
||||||
waypoint:
|
waypoint:
|
||||||
Interactable:
|
Interactable:
|
||||||
|
|||||||
Reference in New Issue
Block a user