Actually, you'd be surprised how common that error is. I fell on it some time ago, too :)
On Tue, Dec 16, 2008 at 3:56 PM, Yorg Kuijs <[email protected]> wrote: > I thought so, but weird thing is that 30 always works the first time. oh > well, I'll go do that then! > Should have thought of it... > > See what I meant I would probably sound stupid>.> > > Rodrigo 'r2d2rigo' Diaz wrote: > > Don't use == for time comparations, because you won't call the function > at > > the EXACT time always. > > > > Better use this: > > > > if ( GetRoundRemainingTime() <= flStartSuddenDeathSound ) > > { > > // play sound and enable flag so the sound doesn't get repeated > > } > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

