diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-04-29 08:21:50 -0400 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-04-29 08:21:50 -0400 |
commit | 15b43939deca0a44033fcec6f26accb32a3fc8eb (patch) | |
tree | c824d62c11a17dc18ba34ff4aa07ba5613ba0d5f /main.c | |
parent | Fixed Rhodes not updating military might (diff) | |
download | 7w-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.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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() { |