Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
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
Users Online
CommonCrawl, Bing, Yandex

Members: 0
Guests: 16
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
Evoru (32)
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 >>