On Tue, 1 Dec 1998, Yohay Etsion wrote:
>error C2106: "-=" : left operand must be l-value
Right. GCC has an extension which lets you do that.
>#define GET_MANA(ch) (!IS_NPC(ch) ?
> ((ch)->player_specials->linking[0] ? \
> (ch)->player_specials->manalinked : \
> (ch)->points.mana): (ch)->points.mana)
You can "fix" it by putting "*" outside the expression and "&" before each
of the variable references, excluding the linking one.
Or you can just make a SET_MANA() macro...
--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/ (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/ | -- 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/15/00 PST