(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly

-Codechange: remove dummy GetAcceptedCargo_*() handlers
This commit is contained in:
smatz
2009-06-25 19:23:09 +00:00
parent 103bff508b
commit c30a87758f
14 changed files with 36 additions and 82 deletions

View File

@@ -108,7 +108,6 @@ public:
/* Because build_date is not set yet in every TileDesc, we make sure it is empty */
TileDesc td;
AcceptedCargo ac;
td.build_date = INVALID_DATE;
@@ -130,7 +129,9 @@ public:
td.grf = NULL;
GetAcceptedCargo(tile, ac);
AcceptedCargo ac;
memset(ac, 0, sizeof(AcceptedCargo));
AddAcceptedCargo(tile, ac);
GetTileDesc(tile, &td);
uint line_nr = 0;