summaryrefslogtreecommitdiff
path: root/games/gnocatan/patches/patch-ac
blob: 23201dfe45eb8a5e9a1539afe2958aa918968aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ac,v 1.1 2003/12/14 17:44:32 wiz Exp $

--- common/game.c.orig	Tue Oct 14 12:13:05 2003
+++ common/game.c
@@ -174,8 +174,8 @@ static gboolean find_no_setup (Map *map,
 	for (idx = 0; idx < numElem (hex->nodes); ++idx) {
 		Node *node = hex->nodes[idx];
 		if (node->no_setup) {
-			if (node->x != hex->x || node->y != hex->y) continue;
 			gchar buff[512];
+			if (node->x != hex->x || node->y != hex->y) continue;
 			snprintf (buff, sizeof(buff), "nosetup %d %d %d",
 					node->x, node->y, node->pos);
 			data->func (data->user_data, buff);