Login
User Name:

Password:



Register

Forgot your password?
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
AhrefsBot, DotBot

Members: 0
Guests: 19
Stats
Files
Topics
Posts
Members
Newest Member
489
3,791
19,644
596
Elwood

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » General » Smaug Snippets » Overland Compile Problem
Forum Rules | Mark all | Recent Posts

Overland Compile Problem
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Sep 29, 2009 2:14 am   
Go to the top of the page
Go to the bottom of the page

Lares
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

Post is unread #2 Sep 29, 2009 12:45 pm   
Go to the top of the page
Go to the bottom of the page

Lares
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.

Pages:<< prev 1 next >>