Skip to content

Commit

Permalink
Merge pull request #3957 from ave-/fix_infinite_batterymod_etc_items
Browse files Browse the repository at this point in the history
fixed non-disappearing on use roadmap and extra battery mod
  • Loading branch information
GlyphGryph committed Oct 29, 2013
2 parents 2346dba + 255d4a3 commit be65e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iuse.cpp
Expand Up @@ -1270,7 +1270,7 @@ int iuse::extra_battery(game *g, player *p, item *it, bool t)

modded->item_tags.insert("DOUBLE_AMMO");
g->add_msg_if_player(p,_("You double the battery capacity of your %s!"), tool->name.c_str());
return it->type->charges_to_use();
return 1;
}

static bool valid_fabric(game *g, player *p, item *it, bool t)
Expand Down Expand Up @@ -2131,7 +2131,7 @@ int iuse::roadmap(game *g, player *p, item *it, bool t)

g->add_msg_if_player(p, _("You add roads and points of interest to your map."));

return it->type->charges_to_use();
return 1;
}

int iuse::picklock(game *g, player *p, item *it, bool t)
Expand Down

0 comments on commit be65e1f

Please sign in to comment.