Merge pull request #3027 from CONSULitAS/RCBugFix_current_command

Fix: current_command_args contains command
This commit is contained in:
Scott Lahteine 2016-02-24 17:43:38 -08:00
commit 8006684c19

View file

@ -5714,7 +5714,7 @@ void process_next_command() {
// Args pointer optimizes code_seen, especially those taking XYZEF // Args pointer optimizes code_seen, especially those taking XYZEF
// This wastes a little cpu on commands that expect no arguments. // This wastes a little cpu on commands that expect no arguments.
current_command_args = current_command; current_command_args = current_command+2; // skip two chars for command code and first digit
while (*current_command_args >= '0' && *current_command_args <= '9') ++current_command_args; while (*current_command_args >= '0' && *current_command_args <= '9') ++current_command_args;
while (*current_command_args == ' ') ++current_command_args; while (*current_command_args == ' ') ++current_command_args;