Both the game and the scenario editor now properly load a scenario.
This means that the game can in fact be played – though saving is not currently operational. git-svn-id: http://openexile.googlecode.com/svn/trunk@32 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
@@ -23,6 +23,12 @@ short dist(location p1,location p2){
|
||||
return s_sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
|
||||
}
|
||||
|
||||
short vdist(location p1,location p2) {
|
||||
short i,j;
|
||||
i = abs((short) (p1.x - p2.x)); j = abs((short) (p1.y - p2.y));
|
||||
return max(i,j);
|
||||
}
|
||||
|
||||
location::location() : x(0), y(0) {}
|
||||
location::location(char a,char b) : x(a), y(b) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user