From fc611d4226287939152406c05b0a3cf51ed3ac94 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 3 Mar 2002 15:52:54 +0000 Subject: [PATCH] strcmp --- src/mapper/logging.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mapper/logging.c b/src/mapper/logging.c index 8d334d4a4..b6846c90f 100644 --- a/src/mapper/logging.c +++ b/src/mapper/logging.c @@ -48,11 +48,11 @@ log_read(const char * filename) r = findregion(x, y); assert(r); if (u->region!=r) move_unit(u, r, NULL); - } else if (strcmp(buf, "REGION")) { + } else if (strcmp(buf, "REGION")==0) { int x, y; fscanf(log, "%d %d", &x, &y); readregion(log, x, y); - } else if (strcmp(buf, "FACTION")) { + } else if (strcmp(buf, "FACTION")==0) { faction * f; fscanf(log, "%s", buf); f = findfaction(atoi36(buf)); @@ -61,7 +61,7 @@ log_read(const char * filename) } else { *fp = readfaction(log); } - } + } else assert(0); } }