Overland Compile Problem
< Newer Topic
:: Older Topic >
Pages:<< prev 1 next >>
#1 Sep 29, 2009 2:14 am
Fledgling
GroupMembers
Posts13
JoinedSep 29, 2009
I'm sorry to bother you all with this, but I'm not the best programmer and I'm just looking for help finish my overland install...
I'm getting an error when I compile smaugFUSS1.9 after installing overland...
------------ compile problems -------------
act_wiz.c: In function âvoid do_at(CHAR_DATA*, char*)â:
act_wiz.c:1473: error: no match for âoperator&â in âoriginal->room_index_data::room_flags & ROOM_MAPâ
act_wiz.c:1475: error: no match for âoperator&â in âoriginal->room_index_data::room_flags & ROOM_MAPâ
act_wiz.c: In function âvoid do_scatter(CHAR_DATA*, const char*)â:
act_wiz.c:4031: error: âoriginalâ was not declared in this scope
act_wiz.c:4033: error: âlocationâ was not declared in this scope
------------ Code with problems -----------
1473 - 1475
if( IS_PLR_FLAG( ch, PLR_ONMAP ) && IS_ROOM_FLAG( original, ROOM_MAP ) )
REMOVE_PLR_FLAG( ch, PLR_ONMAP );
else if( !IS_PLR_FLAG( ch, PLR_ONMAP ) && IS_ROOM_FLAG( original, ROOM_MAP ) )
SET_PLR_FLAG( ch, PLR_ONMAP );
4031 - 4033
original = victim->in_room;
leave_map( victim, ch, location );
Maybe I missed a { or } somewhere...but can anyone help me?
-Lares
I'm getting an error when I compile smaugFUSS1.9 after installing overland...
------------ compile problems -------------
act_wiz.c: In function âvoid do_at(CHAR_DATA*, char*)â:
act_wiz.c:1473: error: no match for âoperator&â in âoriginal->room_index_data::room_flags & ROOM_MAPâ
act_wiz.c:1475: error: no match for âoperator&â in âoriginal->room_index_data::room_flags & ROOM_MAPâ
act_wiz.c: In function âvoid do_scatter(CHAR_DATA*, const char*)â:
act_wiz.c:4031: error: âoriginalâ was not declared in this scope
act_wiz.c:4033: error: âlocationâ was not declared in this scope
------------ Code with problems -----------
1473 - 1475
if( IS_PLR_FLAG( ch, PLR_ONMAP ) && IS_ROOM_FLAG( original, ROOM_MAP ) )
REMOVE_PLR_FLAG( ch, PLR_ONMAP );
else if( !IS_PLR_FLAG( ch, PLR_ONMAP ) && IS_ROOM_FLAG( original, ROOM_MAP ) )
SET_PLR_FLAG( ch, PLR_ONMAP );
4031 - 4033
original = victim->in_room;
leave_map( victim, ch, location );
Maybe I missed a { or } somewhere...but can anyone help me?
-Lares
#2 Sep 29, 2009 12:45 pm
Fledgling
GroupMembers
Posts13
JoinedSep 29, 2009
Figured this out, guess sometimes you just need to take a step back and reassess.
In case anyone else has this problem, I just changed IS_ROOM_FLAG( original, ROOM_MAP )
to
xIS_SET(original->room_flags, ROOM_MAP)
Compiled fine, hope it works alright in the end.
In case anyone else has this problem, I just changed IS_ROOM_FLAG( original, ROOM_MAP )
to
xIS_SET(original->room_flags, ROOM_MAP)
Compiled fine, hope it works alright in the end.
Pages:<< prev 1 next >>