X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fnetvis.cpp;fp=source%2Fnetvis.cpp;h=3aff9cd48ef210a3f543a8e2adc2e5f258773ed9;hb=afc5702fb7a8cb7011886093cd4ea0357ce8abce;hp=ff05507a2fc04364d31d1814037b9c247b1bdbbe;hpb=398c5e3e6e03080b6b057fd56858ab04694969ed;p=netvis.git diff --git a/source/netvis.cpp b/source/netvis.cpp index ff05507..3aff9cd 100644 --- a/source/netvis.cpp +++ b/source/netvis.cpp @@ -135,6 +135,8 @@ void NetVis::tick() { i->second->set_active(true); hosts.insert(*i); + for(unsigned j=0; j<100; ++j) + i->second->tick(100*Time::msec); disabled_hosts.erase(i++); } else if(i->second->get_activity()set_local(true); resolver->push(host); host->set_position(Vector2(rand()*400.0/RAND_MAX-200.0, rand()*400.0/RAND_MAX-200.0)); + for(unsigned j=0; j<100; ++j) + host->tick(100*Time::msec); hosts[a] = host; return *host; }