From b7b1fdc12122e6573bb71b4435c06440a0677c2f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 15 Jun 2014 11:44:53 +0300 Subject: [PATCH] Keep the local network in the center --- source/host.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/host.cpp b/source/host.cpp index c18f117..fca3a30 100644 --- a/source/host.cpp +++ b/source/host.cpp @@ -100,8 +100,9 @@ void Host::tick(const Msp::Time::TimeDelta &td) return; const map &hosts = netvis.get_hosts(); - float fx = -pos.x*0.1; - float fy = -pos.y*0.1; + float center_force = (local ? 0.5 : 0.1); + float fx = -pos.x*center_force; + float fy = -pos.y*center_force; for(map::const_iterator i=hosts.begin(); i!=hosts.end(); ++i) { if(i->second!=this) -- 2.45.2