Dumb question.
Does your who_name entry have a \n at the end of it?

> -----Original Message-----
> From: Richard Lindsey [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 07, 2003 7:23 PM
> To: [email protected]
> Subject: A very weird problem with pc_race_table.who_name
> 
> 
> hey everyone, i'm convinced that this problem is only
> hanging around to piss me off... i've been doing some
> work on the way our remort system works, and i added
> some new races to the race_table and pc_race_table...
> i updated the MAX_PC_RACE counter and it's all working
> fine, except for one little bitty thing that just
> looks ugly...  I found that the normal 6 character
> who_name in the pc_race_table wouldn't let me display
> enough of a race name in the who list for my own
> comfort, so i extended it to a 10 letter who_name... i
> changed the size of it in the pc_race_type in merc.h,
> and in act_info.c i changed the do_who and do_whois
> functions to have a %3s %10s %s instead of %3s %6s %s
> for the section of level/race/class in the who list...
> so i reboot the thing, and almost all my races display 
> flawlessly, but once it gets down to the last 2 races, on my 
> dragons (2nd to the last pc_race), it's tacking a \n onto the 
> who_name when it displays (where it's pulling this from i 
> have no idea, i ran gdb and stepped through do_whois and 
> do_who and when i tell it to print the 
> pc_race_table[wch->race].who_name, it displays fine, no \n, 
> when it combines it all into the buf variable, it's got a 
> \n), so they display like
> this:
> 
> <310   Dragon  
>                IMP> Velveeta blahblahtitlehere.
> 
> And for my last race in the table, where it should be
> saying YoungBlood, which is the who_name for that
> chunk of race, it's chopping it down to 9 char's
> instead of 10, so it displays as such:
> 
> <310 YoungBloo IMP> Velveeta blahblahtitlehere.
> 
> now, there are 5 other races who's who_names display 
> flawlessly, and i've double-checked the length of all of them 
> in const.c and they're all identical length, so why they're 
> displaying this way i have no idea, i'm hoping one of you do :D
> 
> wavewave
> Vel.
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more 
http://taxes.yahoo.com/

-- 
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom

Reply via email to