View Single Post
Old 12-23-07, 07:20 AM   #335
Navarre
Helmsman
 
Join Date: Jul 2003
Location: Europe
Posts: 101
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by skwasjer
When I was creating all the controller definitions I had to assume which type each value was. This case the value is 1 byte in length, and I made the definition a bool (true/false). If this is wrong, it's easy to correct.
That is wrong, you can not assume that the developers only save the values 0=false or 1=true in that byte because a byte can represent a value from 0-255. In this case Sky colors are RGB colors with values 0-255 for each color component.
Navarre is offline   Reply With Quote