Optimized Cargo Logic

This commit is contained in:
svenvandevelde
2016-02-21 22:30:24 +01:00
parent a3acab9288
commit aadd529093
5 changed files with 109 additions and 203 deletions

View File

@@ -76,9 +76,9 @@ trace.f( self.ClassName )
for CargoID, Cargo in pairs( Cargos ) do
trace.i( self.ClassName, { Cargo.ClassName, Cargo.CargoName, Cargo.CargoType } )
trace.i( self.ClassName, { Cargo.ClassName, Cargo.CargoName, Cargo.CargoType, Cargo:IsStatusNone(), Cargo:IsStatusLoaded(), Cargo:IsStatusLoading(), Cargo:IsStatusUnLoaded() } )
if not Cargo:IsStatusLoaded() and not Cargo:IsStatusLoading() then
if Cargo:IsStatusNone() then
local MenuAdd = false
if Cargo:IsNear( Client, self.CurrentCargoZone ) then