Hard Light Productions Forums

General FreeSpace => FreeSpace Discussion => Topic started by: Kazan on April 26, 2001, 02:18:00 pm

Title: Kazan's Stupid Programming Error of the Week
Post by: Kazan on April 26, 2001, 02:18:00 pm
bool operator==(const vector &one, const vector &two)
{
   return ((one.x == two.x) | | (one.y == two.y) | | (one.z == two.z));
}



should be

bool operator==(const vector &one, const vector &two)
{
   return ((one.x == two.x) && (one.y == two.y) && (one.z == two.z));
}



------------------
FreeSpace 2: The Babylon Project Effects Nerd and Programmer.
http://freespace.volitionwatch.com/babylon (//"http://freespace.volitionwatch.com/babylon")

Did you say you wanted your head used as a soccer ball?
Title: Kazan's Stupid Programming Error of the Week
Post by: Kazan on April 26, 2001, 02:29:00 pm
I just noticed a nice Acronym

Kazan's SPEW

------------------
FreeSpace 2: The Babylon Project Effects Nerd and Programmer.
http://freespace.volitionwatch.com/babylon ("http://freespace.volitionwatch.com/babylon")

Did you say you wanted your head used as a soccer ball?
Title: Kazan's Stupid Programming Error of the Week
Post by: Fantomeye on April 26, 2001, 02:33:00 pm
Bear Gone Fishin.
Title: Kazan's Stupid Programming Error of the Week
Post by: Jabu on April 26, 2001, 02:45:00 pm
Stupid!  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/biggrin.gif)
Title: Kazan's Stupid Programming Error of the Week
Post by: Sushi on April 26, 2001, 03:23:00 pm
 (http://dynamic.gamespy.com/~freespace/ubb/noncgi/lol.gif)

------------------
Sushi- the OTHER white meat!
Accelerate your game-Velocity Mod ("http://sushicw.homestead.com/files/freespace/velocity.htm")
Title: Kazan's Stupid Programming Error of the Week
Post by: Kazan on April 26, 2001, 06:06:00 pm
i was checking the calculus in my program OVER and OVER

------------------
FreeSpace 2: The Babylon Project Effects Nerd and Programmer.
http://freespace.volitionwatch.com/babylon ("http://freespace.volitionwatch.com/babylon")

Did you say you wanted your head used as a soccer ball?
Title: Kazan's Stupid Programming Error of the Week
Post by: Kazan on April 26, 2001, 06:46:00 pm


echo("Your PHP version is ");
echo(PHP_VERSION);

?>

i wonder if PHP will work in these [ if you see something above this it does ]


------------------
FreeSpace 2: The Babylon Project Effects Nerd and Programmer.
http://freespace.volitionwatch.com/babylon ("http://freespace.volitionwatch.com/babylon")

Did you say you wanted your head used as a soccer ball?

[This message has been edited by Kazan (edited 04-26-2001).]
Title: Kazan's Stupid Programming Error of the Week
Post by: NeoHunter on April 29, 2001, 03:39:00 am
I couldn't understand one line that was written in the first post.

------------------
...and one day, Man will journey farther and faster into Space. - My thoughts

GTD Excellence  ("http://freespace.volitionwatch.com/excellence") Webmaster
NeoHunter<                       [b][email protected][/b]                                     >
Not to mention a FREDder! :)
Title: Kazan's Stupid Programming Error of the Week
Post by: Dr.Zer0 on May 01, 2001, 02:15:00 am
 
Quote
Originally posted by Kazan:
bool operator==(const vector &one, const vector &two)
{
   return ((one.x == two.x) | | (one.y == two.y) | | (one.z == two.z));
}



should be

bool operator==(const vector &one, const vector &two)
{
   return ((one.x == two.x) && (one.y == two.y) && (one.z == two.z));
}




Stupid: I have thing like that with FRED2. It says something like:
Alpha 1 should be Kappa3, and I cant edit Alpha 1's name  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/mad.gif) it takes about 2 hours to fix  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/mad.gif) and if I dont fix it it shows an error screen  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/mad.gif)

------------------
Calvin (Calvin & Hobbes):
YAAH! DEATH TO OATMEAL!

------------------

Terrans use guns, Vasudans use punching and kicking,
but Shivans have 5 legs multiple eyes and built in Plasma beams
(Dr.Zer0, as seen on VBB)