my error.
by Javier Canon · in Torque Game Engine · 04/26/2009 (2:45 pm) · 5 replies
error? asigned 2 times ??? i dont understand why...
void Player::setControlObject(ShapeBase* obj)
{
if (mControlObject) {
mControlObject->setControllingObject(0);
mControlObject->setControllingClient(0);
}About the author
On the bus again... :)
#2
mControlObject->setControllingObject(0);
mControlObject->setControllingClient(0);
04/26/2009 (5:10 pm)
No error. Nothing weird. Read it more carefully:mControlObject->setControllingObject(0);
mControlObject->setControllingClient(0);
#3
04/26/2009 (5:46 pm)
Blech... This is why I hate when brains read words as a whole and not as seperate letters...
#4
Actually brings up an interesting point. You're right, our brains tend to read words as a whole. It is faster, and that's fine for reading normal English text. Code however, is a different matter. Every letter counts and close is not close enough. It's therefor a good idea to train your eyes to read code differently than you would "regular" text.
04/26/2009 (7:17 pm)
Heh. Indeed, the words look very similar. Right down to the general shape of the C and the O. They both end in t, and in a mono-spaced font they're the same length too.Actually brings up an interesting point. You're right, our brains tend to read words as a whole. It is faster, and that's fine for reading normal English text. Code however, is a different matter. Every letter counts and close is not close enough. It's therefor a good idea to train your eyes to read code differently than you would "regular" text.
#5
04/26/2009 (9:18 pm)
sorry, false alarm, delete de post :D
Torque Owner Tyler Slabinski
Any GG employees elaborate on this?
It is these kind of things that slow the game down...