[STOCK][BUG] Minor stock bug

From: Richard Glover (magik@PYRAMID.NET)
Date: 07/02/98


Find the bug:

constants.c:
int movement_loss[] =
{
  1,    /* Inside     */
  1,    /* City       */
  2,    /* Field      */
  3,    /* Forest     */
  4,    /* Hills      */
  6,    /* Mountains  */
  4,    /* Swimming   */
  1,    /* Unswimable */
  1,    /* Flying     */
  5     /* Underwater */
};

structs.h:
/* Sector types: used in room_data.sector_type */
#define SECT_INSIDE          0             /* Indoors                   */
#define SECT_CITY            1             /* In a city                 */
#define SECT_FIELD           2             /* In a field                */
#define SECT_FOREST          3             /* In a forest               */
#define SECT_HILLS           4             /* In the hills              */
#define SECT_MOUNTAIN        5             /* On a mountain             */
#define SECT_WATER_SWIM      6             /* Swimmable water           */
#define SECT_WATER_NOSWIM    7             /* Water - need a boat       */
#define SECT_UNDERWATER      8             /* Underwater                */
#define SECT_FLYING          9             /* Wheee!                    */

BZZZT, time up.  Flying and underwater are switched in constants.c.

Okay, it's nothing major, but it's not a documented feature.  :)

Rick


     +------------------------------------------------------------+
     | 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/15/00 PST