mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-21 08:26:10 +01:00
[Jul 03 2008] - Rumble
Fixed lib/messages to properly display skill, spell, and damage messages. (thanks T ink) [Jun 28 2008] - Rumble Added player ability to cancel queued commands. i.e. player spammed kick while figh ting but needs to flee so they type '--' to cancel so they can flee. (thanks Jamdog)
This commit is contained in:
parent
66d4a9d3eb
commit
2053b2d4a8
8 changed files with 81 additions and 80 deletions
|
|
@ -1963,6 +1963,14 @@ static int process_input(struct descriptor_data *t)
|
|||
t->history_pos = 0;
|
||||
}
|
||||
|
||||
/* The '--' command flushes the queue. */
|
||||
if ( (*tmp == '-') && (*(tmp+1) == '-') && !(*(tmp+2)) )
|
||||
{
|
||||
write_to_output(t, "All queued commands cancelled.\r\n");
|
||||
flush_queues(t); /* Flush the command queue */
|
||||
return (1); /* No need to process the -- command any further, so quit back out */
|
||||
}
|
||||
|
||||
if (!failed_subst)
|
||||
write_to_q(tmp, &t->input, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue