Login
User Name:

Password:



Register

Forgot your password?
 I3 and IMC
Dec 26, 2024 3:27 am
By GatewaySysop
Hi - Clean SmaugFuss map/description issue..
Dec 15, 2024 7:29 pm
By Samson
AFKMud 2.2.4
Dec 10, 2024 4:09 pm
By Samson
Ubuntu 22.04.5 LTS
Dec 5, 2024 5:10 pm
By Remcon
SmaugFUSS 1.8/1.9
Nov 29, 2024 11:46 am
By Remcon
LOP 1.6
Author: Remcon
Submitted by: Remcon
SWFOTEFUSS 1.5.1
Author: Various
Submitted by: Samson
SWRFUSS 1.4.1
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.5
Author: Various
Submitted by: Samson
AFKMud 2.2.4
Author: AFKMud Team
Submitted by: Samson
Users Online
Bing

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
496
3,808
19,708
594
MaisieMacl

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Bugfix Lists » AFKMud Bugfix List » [Bug] Copyzone command checks...
Forum Rules | Mark all | Recent Posts

[Bug] Copyzone command checks the wrong set of areas by default
< Newer Topic :: Older Topic > AFKMud 2.03

Pages:<< prev 1 next >>
Post is unread #1 Mar 9, 2008 1:06 pm   Last edited Mar 9, 2008 1:09 pm by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,697
JoinedJan 1, 2002

 
Bug: Copyzone command checks the wrong set of areas by default
Danger: Low - The command will simply fail if the wrong area names are checked.
Discovered in: AFKMud 2.03
Found by: Samson
Fixed by: Samson

---

shell.cpp, do_copyzone

Locate:
      if( !str_cmp( argument, "gods.are" ) )
         fname2 = "gods.are";
      if( !str_cmp( argument, "bywater.are" ) )
         fname2 = "bywater.are";
      if( !str_cmp( argument, "entry.are" ) )
         fname2 = "entry.are";
      if( !str_cmp( argument, "astral.are" ) )
         fname2 = "astral.are";
      if( !str_cmp( argument, "void.are" ) )
         fname2 = "void.are";
      if( !str_cmp( argument, "alsherok.are" ) )
         fname2 = "alsherok.are";
      if( !str_cmp( argument, "alatia.are" ) )
         fname2 = "alatia.are";
      if( !str_cmp( argument, "eletar.are" ) )
         fname2 = "eletar.are";
      if( !str_cmp( argument, "varsis.are" ) )
         fname2 = "varsis.are";
      if( !str_cmp( argument, "gwyn.are" ) )
         fname2 = "gwyn.are";
      if( !str_cmp( argument, "sindhae.are" ) )
         fname2 = "sindhae.are";


Change to:
      if( !str_cmp( argument, "entry.are" ) )
         fname2 = "entry.are";
      if( !str_cmp( argument, "astral.are" ) )
         fname2 = "astral.are";
      if( !str_cmp( argument, "void.are" ) )
         fname2 = "void.are";
      if( !str_cmp( argument, "immtrain.are" ) )
         fname2 = "immtrain.are";
      if( !str_cmp( argument, "one.are" ) )
         fname2 = "one.are";


Locate:
   if( fname2 == "gods.are" || fname2 == "void.are" || fname2 == "astral.are"
       || fname2 == "bywater.are" || fname2 == "entry.are" || fname2 == "alsherok.are" || fname2 == "alatia.are"
       || fname2 == "eletar.are" || fname2 == "varsis.are" || fname2 == "gwyn.are" || fname2 == "sindhae.are" )
   {
      ch->print( "&GArea file(s) updated to code port.\r\n" );
      funcf( ch, do_mudexec, "cp %s%s %s", BUILDZONEDIR, fname2, CODEZONEDIR );
   }


Change to:
   if( fname2 == "entry.are" || fname2 == "void.are" || fname2 == "astral.are" || fname2 == "one.are" || fname2 == "immtrain.are" )
   {
      ch->print( "&GArea file(s) updated to code port.\r\n" );
      funcf( ch, do_mudexec, "cp %s%s %s", BUILDZONEDIR, fname2, CODEZONEDIR );
   }


The list of areas specified by this command are not distributed with the codebase, so checking for them is a bit silly.

Pages:<< prev 1 next >>