(svn r4129) - CodeChange: Add proper bool type for is_ai as well...it is a bool type.
authorDarkvater
Sun, 26 Mar 2006 22:25:29 +0000
changeset 3345 40dc834caa24
parent 3344 d86c852715fa
child 3346 96c5db77aa83
(svn r4129) - CodeChange: Add proper bool type for is_ai as well...it is a bool type.
oldloader.c
player.h
--- a/oldloader.c	Sun Mar 26 22:23:32 2006 +0000
+++ b/oldloader.c	Sun Mar 26 22:25:29 2006 +0000
@@ -1034,7 +1034,7 @@
 	} else {
 		/* Beside some multiplayer maps (1 on 1), which we don't official support,
 		all other players are an AI.. mark them as such */
-		p->is_ai = 1;
+		p->is_ai = true;
 	}
 
 	/* Sometimes it is better to not ask.. in old scenarios, the money
--- a/player.h	Sun Mar 26 22:23:32 2006 +0000
+++ b/player.h	Sun Mar 26 22:25:29 2006 +0000
@@ -182,7 +182,7 @@
 	int32 bankrupt_value;
 
 	bool is_active;
-	byte is_ai;
+	bool is_ai;
 	PlayerAI ai;
 	PlayerAiNew ainew;