Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed non-disappearing on use roadmap and extra battery mod #3957

Merged
merged 1 commit into from Oct 29, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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