Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot, Yandex

Members: 0
Guests: 22
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
619
Alexander
Today's Birthdays
Scaythe (46)
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,874
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 >>