[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] ad-hockey displaying last node in the top-left corner
- To: Lloyd Wood <[email protected]>, [email protected]
 
- Subject: Re: [ns] ad-hockey displaying last node in the top-left corner
 
- From: Andronikos Nedos <[email protected]>
 
- Date: Fri, 17 Aug 2001 15:13:25 +0100
 
- References: <Pine.GSO.4.21.0108171422330.12007-100000@phaestos.ee.surrey.ac.uk>
 
- Sender: [email protected]
 
- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
 
Lloyd Wood wrote:
>On Fri, 17 Aug 2001, Andronikos Nedos wrote:
>
>>Another interesting thing that I just observed is that turning on 
>>cobwebs in the Trace menu, displays connecting
>>lines for all nodes , except node 0 ( the one effected by the patch). 
>>
>
>which was missing beforehand...
>
>>That must be another minor mod which I am
>>missing at the moment. But I am not to worried.
>>
>
>>From a quick code glance (I've never run adhockey), I bet it's
>
># new style lines           
>## nodes: 50, max time: 900.00, max x: 1500.00, max y: 300.00
>            
>            $NN = $1;
>
>change that to zero - if it works, post a diff...
>
I don't think its that. new style lines is how ad-hockey anottates its 
own output,
while old style is (I think) what setdest generated.
Its a minor change actually, here goes...
##################################################################
--- ad-hockey.orig    Fri Aug 17 15:08:52 2001
+++ ad-hockey    Fri Aug 17 15:09:00 2001
@@ -1274,7 +1274,7 @@
         # draw a line between us and any earlier nodes we're in range of
         $current_position[$i][0] = $x;
         $current_position[$i][1] = $y;       
-        for ($j = 1; $j < $i ; $j++) {
+        for ($j = 0; $j < $i ; $j++) {
         if (dist($x,$y,
              $current_position[$j][0], 
              $current_position[$j][1]) <= $RANGE) {