Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Today, 5:42 pm
By Remcon
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
LOP 1.45
Author: Remcon
Submitted by: Remcon
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
Users Online
CommonCrawl, Yandex, DotBot, Google, Yahoo!, Majestic-12

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Bug in color.h
Forum Rules | Mark all | Recent Posts

Bug in color.h
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Apr 29, 2012, 12:34 pm
Go to the top of the page
Go to the bottom of the page

ahsatan
Fledgling
GroupMembers
Posts2
JoinedApr 29, 2012

I was looking at some code in color.h today and noticed that there is an off-by-one error with the AT_ defines.

AT_BLINK is defined as 16.

the comment directly under it says:

/* These should be 17 - 31 normaly */

then the next define:

#define AT_BLACK_BLINK AT_BLACK + AT_BLINK

now correct me if i'm wrong but isn't AT_BLACK defined as 0?

which would actually make AT_BLACK_BLINK = 16?

maybe this is intentional and the comment is wrong?

this is from a copy of SmaugFUSS 1.9 downloaded today.

the only reason i found this is because i'm (futilely?) in the process of converting FUSS 1.9 over to Java (why? because i'm bored),
and the numbers just weren't adding up after i got everything copied over.
       
Post is unread #2 Apr 29, 2012, 12:46 pm
Go to the top of the page
Go to the bottom of the page

ahsatan
Fledgling
GroupMembers
Posts2
JoinedApr 29, 2012

nevermind. after digging around a bit more, apparently it's just the comment that is misleading.
       
Post is unread #3 Apr 29, 2012, 3:39 pm
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

If you get this running in java, I'd be more than interested to see the changes you made for that. :)
       
Pages:<< prev 1 next >>