[odamex-bug-reporter] [Bug 1052] New: "Set" CMD is ignored if there is a comment

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Fri, 28 Mar 2014 16:50:34 +0000

http://odamex.net/bugs/show_bug.cgi?id=1052

            Bug ID: 1052
           Summary: "Set" CMD is ignored if there is a comment
    Classification: Unclassified
           Product: Odamex
           Version: 0.7.x
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Server & Client
          Assignee: odamex-bug-reporter@xxxxxxxxxxxxx
          Reporter: Ch0wW@xxxxxxxx

If there is a set command with a // after it's value, the engine will consider
the usage is wrong.

Explanation:
- This command is correctly written:
set test "1"

- This command is wrong however, although it should do the exact same thing:
set test "1" // this is a command

the "set" command seems to think that after the 3nd parameter ("1") there are
other parameters.

What should be correct could be this:
// 1: set, 2: cmd, 3: value. Other things shouldn't be taken into account.
if (argc /*!=*/ < 3) // != 3
{
    Printf (PRINT_HIGH, "usage: set <variable> <value>\n");
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

Other related posts:

  • » [odamex-bug-reporter] [Bug 1052] New: "Set" CMD is ignored if there is a comment - odamex-bugtracker