aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-04-29 08:21:50 -0400
committerNathan Vance <nathav63@gmail.com>2015-04-29 08:21:50 -0400
commit15b43939deca0a44033fcec6f26accb32a3fc8eb (patch)
treec824d62c11a17dc18ba34ff4aa07ba5613ba0d5f /main.c
parentFixed Rhodes not updating military might (diff)
download7w-15b43939deca0a44033fcec6f26accb32a3fc8eb.tar.gz
7w-15b43939deca0a44033fcec6f26accb32a3fc8eb.tar.bz2
7w-15b43939deca0a44033fcec6f26accb32a3fc8eb.zip
Fixed ai trying to play cards not in its hand
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/main.c b/main.c
index f37bba3..2bf5781 100644
--- a/main.c
+++ b/main.c
@@ -1,5 +1,6 @@
#include "7w.h"
#include <stdlib.h>
+#include <stdio.h>
void tester();
void io_init();
@@ -23,7 +24,17 @@ void halt()
exit(0);
}
-static int ais[7] = {0, 1, 1, 1, 1, 1, 1};
+void haltError(char *message, int num)
+{
+ endwin();
+ printf("Something has gone wrong, very wrong.\n");
+ printf(message);
+ printf("\n");
+ printf("Number associated with this error: %d\n", num);
+ exit(1);
+}
+
+static int ais[7] = {1, 1, 1, 1, 1, 1, 1};
main_routine()
{
bgstack15