Author Topic: Kazan's Stupid Programming Error of the Week  (Read 2904 times)

0 Members and 2 Guests are viewing this topic.

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Kazan's Stupid Programming Error of the Week
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

Did you say you wanted your head used as a soccer ball?
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Kazan's Stupid Programming Error of the Week
I just noticed a nice Acronym

Kazan's SPEW

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

Did you say you wanted your head used as a soccer ball?
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Fantomeye

  • Invistible
  • 28
    • http://www.3dap.com/hlp/
Kazan's Stupid Programming Error of the Week
Bear Gone Fishin.

 

Offline Jabu

  • One of our many cases
  • 29
Kazan's Stupid Programming Error of the Week
Stupid!  

 

Offline Sushi

  • Art Critic
  • 211
Kazan's Stupid Programming Error of the Week
 

------------------
Sushi- the OTHER white meat!
Accelerate your game-Velocity Mod

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Kazan's Stupid Programming Error of the Week
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

Did you say you wanted your head used as a soccer ball?
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Kazan's Stupid Programming Error of the Week


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

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

[This message has been edited by Kazan (edited 04-26-2001).]
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

  

Offline NeoHunter

  • Primo Novus Venator
  • 28
Kazan's Stupid Programming Error of the Week
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 Webmaster
NeoHunter<                       [b][email protected][/b]                                     >
Not to mention a FREDder! :)

 

Offline Dr.Zer0

  • Got Knossos?
  • 27
    • http://www.3dap.com/hlp/hosted/knossos/
Kazan's Stupid Programming Error of the Week
 
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   it takes about 2 hours to fix   and if I dont fix it it shows an error screen  

------------------
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)
Calvin (Calvin & Hobbes):
My powerful brain in unraveling the myseries of the universe.
------------------
Its all fun and games until you hit the ground
------------------
Visit my site if you play TFC and hate the way it is
custom-tfc.co.uk
[/i]