From 90bddc654140aee4d19a9b17f8b9df7d196830e8 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 25 Mar 2006 18:56:34 +0000 Subject: [PATCH] (buil): Return RET_FAIL on insufficient tech for bridge instead of literal 2 (which is RET_SYN). Return RET_SYN on incorrect first argument. --- src/lib/commands/buil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/commands/buil.c b/src/lib/commands/buil.c index 6a97db65..c0c9ed61 100644 --- a/src/lib/commands/buil.c +++ b/src/lib/commands/buil.c @@ -168,7 +168,7 @@ buil(void) case 'b': if (natp->nat_level[NAT_TLEV] + 0.005 < buil_bt) { pr("Building a span requires a tech of %.0f\n", buil_bt); - return 2; + return RET_FAIL; } break; case 't': @@ -179,7 +179,7 @@ buil(void) if (natp->nat_level[NAT_TLEV] + 0.005 < buil_tower_bt) { pr("Building a tower requires a tech of %.0f\n", buil_tower_bt); - return 2; + return RET_FAIL; } break; case 'n': @@ -211,7 +211,7 @@ buil(void) break; default: pr("You can't build that!\n"); - return RET_FAIL; + return RET_SYN; } if (what != 'b' && what != 't') { if (player->argp[4]) {