~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/misc_cmd.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman
  • Date: 2010-07-01 08:14:02 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100701081402-98jmva0t3sqywxmi
Tags: 1.0.2-1
* [00c4efe] New upstream release 1.0.2.
* [c7b38fd] Break older openttd versions instead of Conflicting with
  them.
* [36bd61f] Bump standards version to 3.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: misc_cmd.cpp 19665 2010-04-17 22:27:49Z rubidium $ */
 
1
/* $Id: misc_cmd.cpp 19854 2010-05-18 21:25:03Z rubidium $ */
2
2
 
3
3
/*
4
4
 * This file is part of OpenTTD.
222
222
        CommandCost amount(EXPENSES_OTHER, min((Money)p1, (Money)20000000LL));
223
223
 
224
224
        /* You can only transfer funds that is in excess of your loan */
225
 
        if (c->money - c->current_loan < amount.GetCost() || amount.GetCost() <= 0) return CMD_ERROR;
 
225
        if (c->money - c->current_loan < amount.GetCost() || amount.GetCost() < 0) return CMD_ERROR;
226
226
        if (!_networking || !Company::IsValidID((CompanyID)p2)) return CMD_ERROR;
227
227
 
228
228
        if (flags & DC_EXEC) {