Mercurial > hg > openttd
diff src/main_gui.cpp @ 6953:41fd36025784 draft
(svn r10208) -Codechange: replace int32 with Money where appropriate.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 18 Jun 2007 21:44:47 +0000 (2007-06-18) |
parents | 752d9adbb23a |
children | a19700261804 |
line wrap: on
line diff
--- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -92,7 +92,7 @@ #ifdef ENABLE_NETWORK case 3: { // Give money, you can only give money in excess of loan const Player *p = GetPlayer(_current_player); - int32 money = min(p->player_money - p->current_loan, atoi(str) / _currency->rate); + Money money = min(p->player_money - p->current_loan, atoi(str) / _currency->rate); money = clamp(money, 0, 20000000); // Clamp between 20 million and 0