Re: Making directions easier to add to stock

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/07/97


On Sun, 7 Dec 1997, Daniel W. Burke wrote:

>Not anything major, I just noticed this by chance myself, but theres a macro
>in interpreter.h called IS_MOVE().  It uses straight numbers, like so:
>
>#define IS_MOVE(cmdnum) (cmdnum >= 1 && cmdnum <= 6)
>The above number 6 should be changed to say NUM_OF_DIRS like so:
>#define IS_MOVE(cmdnum) (cmdnum >= 1 && cmdnum <= NUM_OF_DIRS)

I noticed that and we've already changed it to a more effective macro for
bpl13. (from memory)

#define IS_MOVE(cmdnum) (cmd_table[cmdnum].command == do_move)

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST