[Change] Made ship_classFromString non-static.
This commit is contained in:
parent
29ba80afba
commit
e829e71347
@ -136,12 +136,12 @@ char* ship_class(Ship* s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @fn static ShipClass ship_classFromString(char* str)
|
* @fn ShipClass ship_classFromString(char* str)
|
||||||
*
|
*
|
||||||
* @brief Get the machine ship class identifier from a human readable string.
|
* @brief Get the machine ship class identifier from a human readable string.
|
||||||
* @param str String to extract ship class identifier from.
|
* @param str String to extract ship class identifier from.
|
||||||
*/
|
*/
|
||||||
static ShipClass ship_classFromString(char* str) {
|
ShipClass ship_classFromString(char* str) {
|
||||||
/* Civilian. */
|
/* Civilian. */
|
||||||
if(strcmp(str, "civ light")==0)
|
if(strcmp(str, "civ light")==0)
|
||||||
return SHIP_CLASS_CIV_LIGHT;
|
return SHIP_CLASS_CIV_LIGHT;
|
||||||
|
@ -80,6 +80,7 @@ typedef struct Ship_ {
|
|||||||
Ship* ship_get(const char* name);
|
Ship* ship_get(const char* name);
|
||||||
Ship** ship_getTech(int* n, const int* tech, const int techmax);
|
Ship** ship_getTech(int* n, const int* tech, const int techmax);
|
||||||
char* ship_class(Ship* p);
|
char* ship_class(Ship* p);
|
||||||
|
ShipClass ship_classFromString(char* str);
|
||||||
int ship_basePrice(Ship* s);
|
int ship_basePrice(Ship* s);
|
||||||
|
|
||||||
/* Load/quit. */
|
/* Load/quit. */
|
||||||
|
Loading…
Reference in New Issue
Block a user