Ooops, looks like there are another files messing up with the current_musi=
c=20
variable.
Anyway, I've fixed that and made current_music to be only changed/getted b=
y=20
the use of functions. Using functions to change/obtain values from other=20
parts of code is a good programming practice, since it allows to make that=
=20
function printing output and so know if it is being written or used, in cas=
e=20
of debugging.
Here goes a fresh patch.
Ricardo Cruz
Em S=C3=A1bado, 13 de Mar=C3=A7o de 2004 02:58, o Tobias Gl=C3=A4=C3=9Fer e=
screveu:
> Am Fr, den 12.03.2004 schrieb Ricardo Cruz um 14:07:
> > Hi,
> > This patch just changed the way music is handled. Instead of telling
> > sdl_mixer to play music once and allways checking, in the gameloop, if =
it
> > is being played; this tells sdl_mixer to play it forever and
> > halts/restarts it when needed.
>
> I don't know why, but your patch is working. I hear the level music, but
> when the herring music or any other music gets invoked the first time
> all music is stopped forever.
>
> Greetz...
>
> Tobias Gl=C3=A4=C3=9Fer
=2D-=20
I'm proud to be paying taxes in the United States. The only thing is
=2D- I could be just as proud for half the money.
-- Arthur Godfrey
|