RE: [Dev-C++] Whats wrong with this function...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Powell, J. (EER) <Pow...@na...> - 2001-05-23 15:39:35
|
Actually what is in the true part of the if conditition will be performed
the first pass. After that unless PlayingSound is set back to false, this
routine (assuming this is all the code) should serve no purpose except to
make sure the PlayingSound is set to true.
-----Original Message-----
From: Andre` Niel Cameron [mailto:ca...@op...]
Sent: Wednesday, May 23, 2001 4:59 AM
To: dev...@li...
Subject: [Dev-C++] Whats wrong with this function...
A friend of mine said this would always be false... Is her right? and if so
how can I fix it...
bool PlayingSound = false;
if (PlayingSound==false){
PlayGameSound();
PlayingSound=true;
}else;
|