src/economy.cpp
changeset 8615 6b91ca653bad
parent 8612 6414fc21c2f3
child 8617 931e0970d509
equal deleted inserted replaced
8614:21126f54f5c8 8615:6b91ca653bad
    38 #include "date.h"
    38 #include "date.h"
    39 #include "cargotype.h"
    39 #include "cargotype.h"
    40 #include "player_face.h"
    40 #include "player_face.h"
    41 #include "group.h"
    41 #include "group.h"
    42 #include "strings_func.h"
    42 #include "strings_func.h"
       
    43 #include "tile_cmd.h"
    43 
    44 
    44 /**
    45 /**
    45  * Multiply two integer values and shift the results to right.
    46  * Multiply two integer values and shift the results to right.
    46  *
    47  *
    47  * This function multiplies two integer values. The result is
    48  * This function multiplies two integer values. The result is
    90 int _score_part[MAX_PLAYERS][SCORE_END];
    91 int _score_part[MAX_PLAYERS][SCORE_END];
    91 Economy _economy;
    92 Economy _economy;
    92 Subsidy _subsidies[MAX_PLAYERS];
    93 Subsidy _subsidies[MAX_PLAYERS];
    93 Prices _price;
    94 Prices _price;
    94 uint16 _price_frac[NUM_PRICES];
    95 uint16 _price_frac[NUM_PRICES];
       
    96 Money  _cargo_payment_rates[NUM_CARGO];
       
    97 uint16 _cargo_payment_rates_frac[NUM_CARGO];
       
    98 Money _additional_cash_required;
    95 
    99 
    96 Money CalculateCompanyValue(const Player* p)
   100 Money CalculateCompanyValue(const Player* p)
    97 {
   101 {
    98 	PlayerID owner = p->index;
   102 	PlayerID owner = p->index;
    99 	/* Do a little nasty by using CommandCost, so we can use the "overflow" protection of CommandCost */
   103 	/* Do a little nasty by using CommandCost, so we can use the "overflow" protection of CommandCost */