Re: Battle prompt off when (FIGHTING(d->character, POS_MORTALLYW))

From: George Greer (greerga@circlemud.org)
Date: 11/29/01


On Thu, 29 Nov 2001, David Cole wrote:

> if (FIGHTING(d->character)
>        && GET_POS(FIGHTING(d->character, POS_MORTALLYW))) { /* WARRNING
>C4002 */
[...]
>C:\circle30bpl17\src\prompt.c(239) : warning C4002: too many actual
>parameters for macro 'FIGHTING'
[...]
>I've tryed GET_POS(FIGHTING(d->character) = POS_MORTALLYW) and it returns
>this:
>
>C:\circle30bpl17\src\prompt.c(240) : warning C4047: '=' : 'struct char_data
>*' differs in levels of indirection from 'const int '

Having trouble matching parentheses?  Where they go is important.

The rest is an exercise for the reader because ... ah, figure it out. Bleh.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST