… | |
… | |
681 | can_pay (object *pl) |
681 | can_pay (object *pl) |
682 | { |
682 | { |
683 | int unpaid_count = 0; |
683 | int unpaid_count = 0; |
684 | sint64 unpaid_price = 0; |
684 | sint64 unpaid_price = 0; |
685 | sint64 player_wealth = query_money (pl); |
685 | sint64 player_wealth = query_money (pl); |
686 | object *item; |
|
|
687 | |
686 | |
688 | if (!pl || pl->type != PLAYER) |
687 | if (!pl || pl->type != PLAYER) |
689 | { |
688 | { |
690 | LOG (llevError, "can_pay(): called against something that isn't a player\n"); |
689 | LOG (llevError, "can_pay(): called against something that isn't a player\n"); |
691 | return 0; |
690 | return 0; |