diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-11 11:57:38 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-11 11:57:38 +0000 |
commit | f0c1e95cef7c5e73686fa385838abc76cb585da3 (patch) | |
tree | 59e6f2f9efae651bf167c64278bdbaa80902dedf /src/map/unit.c | |
parent | 39d366440ac8f14fb9573345395ba5517dbeb25c (diff) | |
download | hercules-f0c1e95cef7c5e73686fa385838abc76cb585da3.tar.gz hercules-f0c1e95cef7c5e73686fa385838abc76cb585da3.tar.bz2 hercules-f0c1e95cef7c5e73686fa385838abc76cb585da3.tar.xz hercules-f0c1e95cef7c5e73686fa385838abc76cb585da3.zip |
yet another minor performance improvement. walking mobs no longer waste bandwidth by sending clif_move to nearby players if they haven't been damaged recently. (bandwidth&process time saver <3)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15857 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 39480867d..6224af787 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -225,7 +225,7 @@ static int unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr_t data if(i > 0) { ud->walktimer = add_timer(tick+i,unit_walktoxy_timer,id,i); - if( md ) + if( md && DIFF_TICK(tick,md->dmgtick) < 3000 )//not required not damaged recently clif_move(ud); } else if(ud->state.running) { //Keep trying to run. |