mirror of
https://git.zap.org.au/git/trader.git
synced 2024-12-04 14:46:45 -05:00
Rename company_names[] to company_name[] for consistency
This commit is contained in:
parent
9f6c2af671
commit
ad10fd4af6
@ -36,7 +36,7 @@
|
|||||||
************************************************************************/
|
************************************************************************/
|
||||||
|
|
||||||
// Company names
|
// Company names
|
||||||
const char *company_names[MAX_COMPANIES] = {
|
const char *company_name[MAX_COMPANIES] = {
|
||||||
"Altair Starways",
|
"Altair Starways",
|
||||||
"Betelgeuse, Ltd",
|
"Betelgeuse, Ltd",
|
||||||
"Capella Freight Co",
|
"Capella Freight Co",
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
// Information about each company
|
// Information about each company
|
||||||
typedef struct company_info {
|
typedef struct company_info {
|
||||||
char *name; // Company name
|
const char *name; // Company name
|
||||||
double share_price; // Share price
|
double share_price; // Share price
|
||||||
double share_return; // Return per share
|
double share_return; // Return per share
|
||||||
long stock_issued; // Total stock sold to players
|
long stock_issued; // Total stock sold to players
|
||||||
@ -87,7 +87,7 @@ typedef struct company_info {
|
|||||||
|
|
||||||
// Information about each player
|
// Information about each player
|
||||||
typedef struct player_info {
|
typedef struct player_info {
|
||||||
char *name; // Player name
|
const char *name; // Player name
|
||||||
double cash; // Cash available
|
double cash; // Cash available
|
||||||
double debt; // Amount of debt
|
double debt; // Amount of debt
|
||||||
long stock_owned[MAX_COMPANIES]; // How much stock is owned
|
long stock_owned[MAX_COMPANIES]; // How much stock is owned
|
||||||
@ -115,7 +115,7 @@ typedef struct move_rec {
|
|||||||
|
|
||||||
|
|
||||||
// Company names
|
// Company names
|
||||||
extern const char *company_names[MAX_COMPANIES];
|
extern const char *company_name[MAX_COMPANIES];
|
||||||
|
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user