View unanswered posts | View active topics It is currently Fri Oct 30, 2020 1:03 am

Reply to topic  [ 1 post ] 
1.40 RC#2 Display Centered Text bug 
Author Message
User avatar

Joined: Thu Jun 26, 2008 11:27 am
Posts: 22
Location: Johannesburg, South Africa
Post 1.40 RC#2 Display Centered Text bug
A small bug with some of the display functions
If you have the following (pointless) code
for (int ctr = 0;ctr < 4;++ctr)
   nxtDisplayTextLine(ctr, "ABC");
   nxtDisplayCenteredTextLine(ctr, "ABC");
This won't compile and you get an error on the nxtDisplayCenteredTextLine line
The reason is that parameter nLineNumber is defined as a 'compileconst' in nxtDisplayCenteredTextLine whereas it is a 'const' in nxtDisplayTextLine.
I could not think of any reason for the use of compileconst so I changed it in the RobotCIntrinsics.c file and the sky didn't fall.
I notice that this occurs in several other functions as well.

Wed Aug 13, 2008 3:39 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.