check your #defines in structs.h, apparantly the race on 293/299 have the same #, and 303 too... make sure they are 0 1 2 3.. not 1 2 1 1 or something On Sun, 8 Dec 1996, Matt wrote: > Hi all...ok, i just recently tried to add races to my mud (from > the file "races" in the snippets that someone recently attached > to an email and sent to the mailing list). I followed everything > correctly, but when i compile i get these errors: > > class.c: In function "roll_real_abils': > class.c:299: duplicate case value > class.c:293: this is the first entry for that value > class.c:303: duplicate case value > class.c:293: this is the first entry for that value > make[1]: *** [class.o] Error 1 > make[1]: Leaving directory '/home/circle/circle30bpl11/src > make: *** [default] Error 2 > > Now, I know this prolly stems from one single problem, but i can't > seem to find it, i double checked the snippet i was adding, still no luck > > here's the code for class.c line 290 thru line 305 > > > switch (GET_RACE)ch__ { > case RACE_HUMAN: > break; > case RACE_ELF: > ch->real_abils.dex +=1; > ch->real_abils.intel +=1; > ch->real_abils.str -=1; > ch->real_abils.con -=1; > case RACE_GNOME: > ch->real_abils.intel +=1; > ch->real_abils.wis -=1; > break; > case RACE_DWARF: > ch->real_abils.con +=1; > ch->real_abils.dex +=1; > ch->real_abils.intel +=1; > ch->real_abils.cha -=1; > break; > default: > break; > } > > > this is prolly a -real- stupid question but not one i can figure out > thanks in advance!!! > > ****************************************************** > ||||\ /|||| ||||----\ [M]atthew [P]etty > |||| \ / |||| |||| \ > |||| \/ |||| ||||_____/ Email: mcp@draper.net > |||| |||| |||| > |||| |||| {} |||| {} > ****************************************************** > +-----------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | > +-----------------------------------------------------------+ > /---------\ /--------/ / /XXXXXXX\ \ / ////// / / ///XXXXX\\\ \ / ////// / / /////XXX\\\\\ \/ ////// / -=-=-=-=-=-=-=- / ////// \\\\\\\ ////// / Brian Williams / ////// /\ \\\\\XXX///// / bmw@efn.org / ////// / \ \\\XXXXX/// / / ////// / \ \XXXXXXX/ / /\ /_ |_| /\ |/ /--------/ \---------/ /--\ / | | /--\ |\ +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST