More multiprotocol support

This commit is contained in:
Eduardo Bart
2012-07-26 03:10:28 -03:00
parent e393bc245d
commit c795eb91ab
43 changed files with 421 additions and 341 deletions

View File

@@ -91,7 +91,7 @@ end
function addAllCreatures()
local spectators = {}
local player = g_game.getLocalPlayer()
if player then
if g_game.isOnline() then
creatures = g_map.getSpectators(player:getPosition(), false)
for i, creature in ipairs(creatures) do
if creature ~= player and doCreatureFitFilters(creature) then
@@ -129,7 +129,7 @@ end
function checkCreatures(forceRecheck)
local player = g_game.getLocalPlayer()
if player then
if g_game.isOnline() then
local spectators = {}
-- reloading list of spectators