small edit (int->bool)

This commit is contained in:
Enno Rehling 2016-12-11 22:40:06 +01:00 committed by Enno Rehling
parent 61f3585ad7
commit 70dfe20e62
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ bool is_guard(const struct unit * u)
unit *is_guarded(region * r, unit * u) unit *is_guarded(region * r, unit * u)
{ {
unit *u2; unit *u2;
int noguards = 1; bool noguards = true;
if (!fval(r, RF_GUARDED)) { if (!fval(r, RF_GUARDED)) {
return NULL; return NULL;
@ -140,7 +140,7 @@ unit *is_guarded(region * r, unit * u)
for (u2 = r->units; u2; u2 = u2->next) { for (u2 = r->units; u2; u2 = u2->next) {
if (is_guardian_r(u2)) { if (is_guardian_r(u2)) {
noguards = 0; noguards = false;
if (is_guardian_u(u2, u)) { if (is_guardian_u(u2, u)) {
/* u2 is our guard. stop processing (we might have to go further next time) */ /* u2 is our guard. stop processing (we might have to go further next time) */
return u2; return u2;