(svn r17435) -Codechange: Move _cargo_payment_rates[] to CargoSpec::current_payment.

This commit is contained in:
frosch
2009-09-06 20:36:17 +00:00
parent 00ed9c83ee
commit eb1306110a
3 changed files with 12 additions and 7 deletions

View File

@@ -12,6 +12,7 @@
#ifndef CARGOTYPE_H
#define CARGOTYPE_H
#include "economy_type.h"
#include "cargo_type.h"
#include "gfx_type.h"
#include "strings_type.h"
@@ -57,6 +58,8 @@ struct CargoSpec {
const struct GRFFile *grffile; ///< NewGRF where 'group' belongs to
const struct SpriteGroup *group;
Money current_payment;
/**
* Determines index of this cargospec
* @return index (in the CargoSpec::array array)