Let daemon validate hull conductivity toggles
This commit is contained in:
parent
a13a8e0d1e
commit
cb81da057f
4 changed files with 60 additions and 7 deletions
|
|
@ -1555,13 +1555,7 @@ public class ActionGameManager : MonoBehaviour
|
|||
|
||||
public bool RequestHullConductivityToggle(Entity entity, int2 position, int axis)
|
||||
{
|
||||
if (entity?.HullConductivity == null ||
|
||||
position.x < 0 ||
|
||||
position.y < 0 ||
|
||||
position.x >= entity.HullConductivity.GetLength(0) ||
|
||||
position.y >= entity.HullConductivity.GetLength(1) ||
|
||||
axis < 0 ||
|
||||
axis > 1)
|
||||
if (entity == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue