Resource silo test fix (#354)

* isolated test fix from the inst-act branch

* getting rid of the hack for implant terminal mech coordinates
This commit is contained in:
Fate-JH 2020-04-16 17:46:00 -04:00 committed by GitHub
parent 9ac1047a9a
commit 7f402ac171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View file

@ -402,16 +402,6 @@ class Zone(private val zoneId : String, zoneMap : ZoneMap, zoneNumber : Int) {
})
//after all fixed GUID's are defined ...
other.foreach(obj => guid.register(obj, "dynamic"))
//TODO temporary; convert all old-style ImplantTerminalMech.Constructor with the kind that provides position data
import net.psforever.objects.serverobject.implantmech.ImplantTerminalMech
import net.psforever.objects.serverobject.terminals.Terminal
zoneMap.TerminalToInterface.foreach { case (mech_guid, interface_guid) =>
(GUID(mech_guid), GUID(interface_guid)) match {
case (Some(mech : ImplantTerminalMech), Some(interface : Terminal)) =>
mech.Position = interface.Position
case _ => ;
}
}
}
private def MakeBuildings(implicit context : ActorContext) : PairMap[Int, Building] = {

View file

@ -100,6 +100,7 @@ class ResourceSiloControlUseTest extends ActorTest {
guid.register(obj, 2)
guid.register(player, 3)
guid.register(vehicle, 4)
expectNoMsg(200 milliseconds)
zone.Transport ! Zone.Vehicle.Spawn(vehicle)
vehicle.Seats(0).Occupant = player
player.VehicleSeated = vehicle.GUID