don't use action_run_string in action.c, pass along the data so that the second action gets all the same flags

This commit is contained in:
Dana Jansens 2003-12-22 17:38:05 +00:00
parent a6e4aba806
commit b11a948442

View file

@ -1041,7 +1041,10 @@ void action_raiselower(union ActionData *data)
} }
} }
action_run_string((raise ? "Raise" : "Lower"), c); if (raise)
action_raise(data);
else
action_lower(data);
} }
void action_raise(union ActionData *data) void action_raise(union ActionData *data)
@ -1054,17 +1057,17 @@ void action_raise(union ActionData *data)
void action_unshaderaise(union ActionData *data) void action_unshaderaise(union ActionData *data)
{ {
if (data->client.any.c->shaded) if (data->client.any.c->shaded)
action_run_string("Unshade", data->client.any.c); action_unshade(data);
else else
action_run_string("Raise", data->client.any.c); action_raise(data);
} }
void action_shadelower(union ActionData *data) void action_shadelower(union ActionData *data)
{ {
if (data->client.any.c->shaded) if (data->client.any.c->shaded)
action_run_string("Lower", data->client.any.c); action_lower(data);
else else
action_run_string("Shade", data->client.any.c); action_shade(data);
} }
void action_lower(union ActionData *data) void action_lower(union ActionData *data)