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:
@@ -46,16 +46,16 @@ void set_terrain_blocked()
|
||||
terrain_blocked[i] = scenario.ter_types[i].blockage;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
//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);
|
||||
//}
|
||||
|
||||
Boolean adjacent(location p1,location p2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user