[VERIFIED] A and An

Found a bug in UOX3? Or experienced a server crash? Perhaps you've noticed a broken feature? Post the details here!
Post Reply
punt
VIP
Posts: 244
Joined: Wed Mar 24, 2004 7:46 pm
Has thanked: 0
Been thanked: 9 times

A and An

Post by punt »

Minor bug.

In uox3.cpp in the method getTileName(), there is this check:

Code: Select all

                if( tile.DisplayAsAn() )
                        temp = "an " + temp;
                else if( tile.DisplayAsA() )
                        temp = "a " + temp;

It looks correct until you consider the code above:

Code: Select all

        if( temp.substr( 0, 1 ) == "#" )
        {
                temp =  static_cast< UString >( tile.Name() );
        }
The tiledata flag is only valid if one is using the name in the tiledata.mul file. If you are using a name in the data files provided by the shard operator, the validity of the tiledata.mul a/an flag is indeterminent at best.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Has this issue been taken care of?
-= Ho Eyo He Hum =-
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

*bump*
-= Ho Eyo He Hum =-
Sydius
UOX3 Apprentice
Posts: 171
Joined: Thu Mar 25, 2004 3:22 am
Has thanked: 0
Been thanked: 0

Post by Sydius »

Seems easy! I will try to fix this one tonight, too. :-)
Post Reply