forked from github/server
unused variable
This commit is contained in:
parent
c8b2ce7900
commit
7a4a49160c
|
@ -89,7 +89,6 @@ static int
|
||||||
use_speedsail(struct unit *u, const struct item_type *itype, int amount,
|
use_speedsail(struct unit *u, const struct item_type *itype, int amount,
|
||||||
struct order *ord)
|
struct order *ord)
|
||||||
{
|
{
|
||||||
curse *c;
|
|
||||||
double effect;
|
double effect;
|
||||||
ship *sh = u->ship;
|
ship *sh = u->ship;
|
||||||
if (!sh) {
|
if (!sh) {
|
||||||
|
@ -98,8 +97,7 @@ struct order *ord)
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = SPEEDSAIL_EFFECT;
|
effect = SPEEDSAIL_EFFECT;
|
||||||
c = create_curse(u, &sh->attribs, &ct_shipspeedup, 20, INT_MAX,
|
create_curse(u, &sh->attribs, &ct_shipspeedup, 20, INT_MAX, effect, 0);
|
||||||
effect, 0);
|
|
||||||
|
|
||||||
ADDMSG(&u->faction->msgs, msg_message("use_speedsail", "unit speed", u,
|
ADDMSG(&u->faction->msgs, msg_message("use_speedsail", "unit speed", u,
|
||||||
SPEEDSAIL_EFFECT));
|
SPEEDSAIL_EFFECT));
|
||||||
|
|
Loading…
Reference in New Issue