From 9dc797a8a31c67c984301595f2c03cb571e9d0c8 Mon Sep 17 00:00:00 2001 From: Allanis Date: Mon, 1 Jul 2013 19:49:13 +0100 Subject: [PATCH] [Add] Just a few more comments. :/ --- src/ship.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ship.c b/src/ship.c index 337bc5b..913ed4a 100644 --- a/src/ship.c +++ b/src/ship.c @@ -58,15 +58,16 @@ char** ship_getTech(int* n, const int* tech, const int techmax) { char** shipnames; Ship** ships; + /* Get availabble ships for tech. */ ships = malloc(sizeof(Ship*) * ship_nstack); num = 0; for(i = 0; i < ship_nstack; i++) { - if(ship_stack[i].tech <= tech[0]) { + if(ship_stack[i].tech <= tech[0]) { /* Check vs base tech. */ ships[num] = &ship_stack[i]; num++; } else { for(j = 0; j < techmax; j++) - if(tech[j] == ship_stack[i].tech) { + if(tech[j] == ship_stack[i].tech) { /* Check vs special tech. */ ships[num] = &ship_stack[i]; num++; }