Removed depricated variable "EID.isOnlineMultiplayer"
This commit is contained in:
1 parent
da9eb2b3dd
commit
460eaeee01
1 file changed
+1
-9
@@ -22,7 +22,6 @@ EID.coopMainPlayers = {} -- The primary Player Entity for each controller being
|
||||
EID.coopAllPlayers = {} -- Every Player Entity (includes Esau, T.Forgotten)
|
||||
EID.controllerIndexes = {} -- A table to map each controller index to their player number for coloring indicators
|
||||
EID.isMultiplayer = false -- Used to color P1's highlight/outline indicators (single player just uses white)
|
||||
EID.isOnlineMultiplayer = false -- Set to true to disable code functions that might cause desyncs
|
||||
EID.BoC = {}
|
||||
|
||||
-- general variables
|
||||
@@ -816,13 +815,6 @@ function EID:onNewRoom()
|
||||
end
|
||||
end
|
||||
EID:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, EID.onNewRoom)
|
||||
|
||||
function EID:onCmd(command, _)
|
||||
if command == "netstart" then -- the game somehow propagates that command correctly to the callback...
|
||||
EID.isOnlineMultiplayer = true
|
||||
end
|
||||
end
|
||||
EID:AddCallback(ModCallbacks.MC_EXECUTE_CMD, EID.onCmd)
|
||||
---------------------------------------------------------------------------
|
||||
---------------------------Handle Rendering--------------------------------
|
||||
|
||||
@@ -1141,7 +1133,7 @@ EID:AddCallback(ModCallbacks.MC_POST_PICKUP_INIT, EID.CollectibleSpawnedThisFram
|
||||
local lastPathfindFrame = -1
|
||||
|
||||
local function attemptPathfind(entity)
|
||||
if (EID.Config["DisableObstructionOnFlight"] and EID.player.CanFly) or EID.isOnlineMultiplayer then
|
||||
if (EID.Config["DisableObstructionOnFlight"] and EID.player.CanFly) then
|
||||
pathsChecked[entity.InitSeed] = true
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user