I've been working on this for too many hours, so now I'm going to turn to
this list to try to get some help.
First question: I'm using some extended compile flags in my makefile to
try to get rid of any potential problems, including -Wcast-qual and
-Wcast-align, now, after hours of fixing things, I'm left with one warning
message left (in different places). Does anyone know how to fix this? I've
checked the mailing list archives and even tried finding things on the net
about it, but all I could find was "Just remove that compile flag"
(Rom2.4b6+OLC2)
olc_act.c:3671: warning: cast discards qualifiers from pointer target type
info from olc_act:
ED_FUN_DEC( ed_flag_toggle )
{
int value;
if( !emptystring( argument ) )
{
3671> if( ( value = flag_value( ( struct flag_type *) par, argument ) ) !=
NO_FLAG )
{
*(long *) arg ^= value;
...
...
...
Second question:
Using Ammaross' unlimited bit system, I have it compiling error-free,
converting everything fine, working fine.. Except for one little (or not
so little) problem.
If a player casts a spell on themself, using sanctuary as an example,
the spell gets cast, affects command shows:
Spell: sanctuary : modifies none by 0 for 7 hours
which is correct. However.. if you stat that person, you see the
following:
Spell: 'sanctuary' modifies none by 0 for 7 hours with bits sanctuary
faerie_fire infrared curse poison prot_evil prot_good berserk slow plague
dark_vision, level 45.
Has anyone run into this problem before, or does anyone know how to fix
this? I'm on day 2 of trying to figure it out and I'm getting close to the
'pulling out hair' stage.
Now I remember why I hate starting off from a clean mud base.. Well,
thanks for reading, and any help with this!
---
RogueDragon @ A Merging of Fates MUD
telnet://mud.merging.org:5454
icq: 2072355 (inactive atm), yim: roguedragon, aim: roguedragon69
---
Windows - Where do you want to go today?
Linux - Where do you want to go tomorrow?
FreeBSD - When are they going to catch up?