Making directions easier to add to stock

From: Daniel W. Burke (dwb@IX.NETCOM.COM)
Date: 12/07/97


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)

Nothing major, but could cause things not to work if missed when adding
directions, and just using that macro would solve that problem.

Brazil
addict.dmswebworks.com 4000
The REAL AddictMUD is up and running.  Come on by.


     +------------------------------------------------------------+
     | 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