[aquaria] Squares in Shield Song message
False.Genesis
false.genesis at googlemail.com
Sun Oct 16 14:19:29 EDT 2011
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;
More information about the aquaria
mailing list