mirror of https://github.com/OpenTTD/OpenTTD
(svn r14187) -Fix (r14104): silence warning when compiling without networking enabled.
parent
ead8de78ea
commit
468655c916
|
@ -62,7 +62,6 @@ void CcGiveMoney(bool success, TileIndex tile, uint32 p1, uint32 p2)
|
||||||
|
|
||||||
void HandleOnEditText(const char *str)
|
void HandleOnEditText(const char *str)
|
||||||
{
|
{
|
||||||
int id = _rename_id;
|
|
||||||
_cmd_text = str;
|
_cmd_text = str;
|
||||||
|
|
||||||
switch (_rename_what) {
|
switch (_rename_what) {
|
||||||
|
@ -74,7 +73,7 @@ void HandleOnEditText(const char *str)
|
||||||
uint32 money_c = Clamp(ClampToI32(money), 0, 20000000); // Clamp between 20 million and 0
|
uint32 money_c = Clamp(ClampToI32(money), 0, 20000000); // Clamp between 20 million and 0
|
||||||
|
|
||||||
/* Give 'id' the money, and substract it from ourself */
|
/* Give 'id' the money, and substract it from ourself */
|
||||||
DoCommandP(0, money_c, id, CcGiveMoney, CMD_GIVE_MONEY | CMD_MSG(STR_INSUFFICIENT_FUNDS));
|
DoCommandP(0, money_c, _rename_id, CcGiveMoney, CMD_GIVE_MONEY | CMD_MSG(STR_INSUFFICIENT_FUNDS));
|
||||||
} break;
|
} break;
|
||||||
#endif /* ENABLE_NETWORK */
|
#endif /* ENABLE_NETWORK */
|
||||||
default: NOT_REACHED();
|
default: NOT_REACHED();
|
||||||
|
|
Loading…
Reference in New Issue