Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Bing, Google, Yahoo!, Majestic-12

Members: 0
Guests: 5
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » Question about Reset Fix
Forum Rules | Mark all | Recent Posts

Question about Reset Fix
< Newer Topic :: Older Topic >

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

Keirath
Magician
GroupMembers
Posts144
JoinedJan 24, 2008

I saw that Kayle posted the reset fix for SWR and was checking out SWR (1.3 FUSS this time, of course) and saw that this is twice:
   if( IS_NPC( ch ) )
      update_room_reset( ch, TRUE );

   if( IS_NPC( ch ) )
      update_room_reset( ch, TRUE );


Wouldn't this indeed reset it twice? Is it necessary? Just curious.
       
Post is unread #2 Sep 2, 2009, 2:18 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,857
JoinedJul 26, 2005

Is that in the code or was that in the fix post because the fix post looks fine.

Well just checked and yea your right in handler.c extract_char it has
   if( ch->mount )
   {
      update_room_reset( ch, TRUE );
      REMOVE_BIT( ch->mount->act, ACT_MOUNTED );
      ch->mount = NULL;
      ch->position = POS_STANDING;
   }

   if( IS_NPC( ch ) )
      update_room_reset( ch, TRUE );

   if( IS_NPC( ch ) )
      update_room_reset( ch, TRUE );

Just remove one of them.
It won't make it reset twice though. All it would do is reset the room reset twice for the mobile but it will set it the same each time so shouldn't be any problem.
       
Post is unread #3 Sep 2, 2009, 6:25 pm
Go to the top of the page
Go to the bottom of the page

Keirath
Magician
GroupMembers
Posts144
JoinedJan 24, 2008

That is what I figured. Thanks.
       
Post is unread #4 Sep 3, 2009, 2:03 am
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Doh.
       
Pages:<< prev 1 next >>