This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: source/simulation2/components/CCmpPathfinder_Tile.cpp | |
=================================================================== | |
--- source/simulation2/components/CCmpPathfinder_Tile.cpp (revision 16407) | |
+++ source/simulation2/components/CCmpPathfinder_Tile.cpp (working copy) | |
@@ -232,23 +232,14 @@ | |
static u32 CalculateHeuristic(u16 i, u16 j, u16 iGoal, u16 jGoal, u16 rGoal) | |
{ | |
#if USE_DIAGONAL_MOVEMENT | |
- CFixedVector2D pos (fixed::FromInt(i), fixed::FromInt(j)); | |
- CFixedVector2D goal (fixed::FromInt(iGoal), fixed::FromInt(jGoal)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"time" | |
"net/http" | |
"strconv" | |
"strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
observ := observable.NewObservable(g, 0) | |
observ.OnChanged(g, func(new observable.Object, old observable.Object) { | |
if new.(int) < 1 { | |
return | |
} | |
fmt.Println("First set", new, "(", old,") call gets", observ.Get()); | |
}) | |
observ.OnChanged(g, func(new observable.Object, old observable.Object) { | |
if new.(int) < 1 { |