summaryrefslogtreecommitdiff
path: root/src/scripting/luautil.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-09-19 19:59:58 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-09-19 19:59:58 +0200
commit810f968b177c332b4459ca08b7e9b010b209bea6 (patch)
tree3e0ffdf76711cfc538fe33c1fdb699de2a2b2a46 /src/scripting/luautil.cpp
parentc168472002a465101e556a5165965de6bfb6231c (diff)
downloadmanaserv-810f968b177c332b4459ca08b7e9b010b209bea6.tar.gz
manaserv-810f968b177c332b4459ca08b7e9b010b209bea6.tar.bz2
manaserv-810f968b177c332b4459ca08b7e9b010b209bea6.tar.xz
manaserv-810f968b177c332b4459ca08b7e9b010b209bea6.zip
Some optimizations in GameHandler
The findActorNear, findBeingNear and findCharacterNear functions in gamehandler.cpp were iterating over nearby entities in search for an entity with a specific ID. Now they do a quick lookup of exactly that entity, and then check whether it is in range.
Diffstat (limited to 'src/scripting/luautil.cpp')
0 files changed, 0 insertions, 0 deletions