Changeset 193

Show
Ignore:
Timestamp:
11/19/08 13:45:05 (17 years ago)
Author:
yumileroy
Message:

[svn] Disable LOS check in canSeeOrDetect. It has been proved that CPU cannot sustain so much calculation.

Original author: megamage
Date: 2008-11-08 09:03:56-06:00

Location:
trunk/src/game
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Creature.cpp

    r186 r193  
    15301530 
    15311531    // Now check is target visible with LoS 
    1532     return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ()); 
     1532    //return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ()); 
     1533    return true; 
    15331534} 
    15341535 
  • trunk/src/game/Player.cpp

    r190 r193  
    1728517285    } 
    1728617286 
     17287    // If use this server will be too laggy 
    1728717288    // Now check is target visible with LoS 
    17288     return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ()); 
     17289    //return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ()); 
     17290    return true; 
    1728917291} 
    1729017292