[aquaria] Squares in Shield Song message

Doogster thedoogster at gmail.com
Sun Oct 16 20:44:38 EDT 2011


I see that the code snippet was in the second patch
(attachment-004.diff). I applied that patch, and it worked perfectly.
Thanks.

On Sun, Oct 16, 2011 at 11:19 AM, False.Genesis
<false.genesis at googlemail.com> wrote:
> Has been reported a while ago; already posted a patch for this but it isn't
> in the repo (yet).
>
> More info here: http://icculus.org/pipermail/aquaria/2011-August/000463.html
>
> The code you are interested in is this:
> (Sorry for formatting failure but thunderbird is just doing it wrong)
>
>
> diff --git a/Aquaria/Game.cpp b/Aquaria/Game.cpp
> index 4fa55c3..a6da240 100644
> --- a/Aquaria/Game.cpp
> +++ b/Aquaria/Game.cpp
> @@ -7812,7 +7812,7 @@ void Game::setControlHint(const std::string &h, bool
> left, bool right, bool midd
>                Vector p = controlHint_mouseLeft->position + Vector(-100,0);
>
>                os.seekp(0);
> -               os << "song/songslot-" <<
> dsq->continuity.getSongSlotByType(songType);
> +               os << "song/songslot-" <<
> dsq->continuity.getSongSlotByType(songType) << '\0'; // ensure correct
> string termination across compilers
>                Quad *q = new Quad(os.str(), p);
>                q->followCamera = 1;
>                q->scale = Vector(0.7, 0.7);
> @@ -7827,7 +7827,7 @@ void Game::setControlHint(const std::string &h, bool
> left, bool right, bool midd
>                        int note = song->notes[i];
>
>                        os.seekp(0);
> -                       os << "song/notebutton-" << note;
> +                       os << "song/notebutton-" << note << '\0';
>                        Quad *q = new Quad(os.str(), p);
>                        q->color = dsq->getNoteColor(note)*0.5f + Vector(1,
> 1, 1)*0.5f;
>                        q->followCamera = 1;
> _______________________________________________
> aquaria mailing list
> aquaria at icculus.org
> http://icculus.org/mailman/listinfo/aquaria
>


More information about the aquaria mailing list