forked from townforge/townforge
cc: don't add 0 land tax events
This commit is contained in:
parent
dfd37c7bf5
commit
79348ffb50
@ -130,9 +130,12 @@ static void add_city(BlockchainDB &db, cc_command_game_update_t &cg, uint32_t ci
|
||||
}
|
||||
else
|
||||
{
|
||||
events.add(flag.owner, flag.id) << "Pays land tax " << cryptonote::print_money(land_tax);
|
||||
balance_deltas[flag.owner] -= land_tax;
|
||||
balance_deltas[treasury] += land_tax;
|
||||
if (land_tax > 0)
|
||||
{
|
||||
events.add(flag.owner, flag.id) << "Pays land tax " << cryptonote::print_money(land_tax);
|
||||
balance_deltas[flag.owner] -= land_tax;
|
||||
balance_deltas[treasury] += land_tax;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user