From: Guus Sliepen Date: Tue, 27 Jul 2010 16:56:01 +0000 (+0200) Subject: Increase storage size for message strings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3019ab8078ee81092b8af341fe97bd3f9365e8a2;p=quix0rs-blobwars.git Increase storage size for message strings. This should help especially for translations with many multi-byte Unicode characters. --- diff --git a/src/game.cpp b/src/game.cpp index 8a442af..b093fbc 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -390,7 +390,7 @@ void showMissionInformation() graphics.drawRect(1, 1, 398, 298, graphics.black, graphics.white, panelBack); - char message[100]; + char message[256]; int col1 = 25; int col2 = 375; int y = 30; diff --git a/src/info.cpp b/src/info.cpp index 6174266..e6b638b 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -250,7 +250,7 @@ void doPauseInfo() // Do the objectives list Objective *objective = (Objective*)map.objectiveList.getHead(); - char message[100]; + char message[256]; y += 60; diff --git a/src/loadSave.cpp b/src/loadSave.cpp index d77c21f..14cbd7f 100644 --- a/src/loadSave.cpp +++ b/src/loadSave.cpp @@ -316,7 +316,7 @@ int confirmSave() void saveGame() { - char message[100]; + char message[256]; SDL_FillRect(graphics.screen, NULL, graphics.black); graphics.updateScreen(); diff --git a/src/mias.cpp b/src/mias.cpp index 18345f4..6dc2154 100644 --- a/src/mias.cpp +++ b/src/mias.cpp @@ -62,7 +62,7 @@ void doMIAs() int x, y; - char message[100]; + char message[256]; while (mia->next != NULL) { diff --git a/src/mission.cpp b/src/mission.cpp index 7fca190..1a7934f 100644 --- a/src/mission.cpp +++ b/src/mission.cpp @@ -179,7 +179,7 @@ void showMissionClear() Objective *objective = (Objective*)map.objectiveList.getHead(); Entity *mia = (Entity*)map.miaList.getHead(); Sprite *teleportStar = graphics.getSprite("TeleportStar", true); - char message[100]; + char message[256]; int col1 = 360; int col2 = 380; int count = 0; diff --git a/src/objectives.cpp b/src/objectives.cpp index f9e92f7..0028344 100644 --- a/src/objectives.cpp +++ b/src/objectives.cpp @@ -241,7 +241,7 @@ void checkObjectives(const char *name, bool alwaysInform) { Objective *objective = (Objective*)map.objectiveList.getHead(); - char message[100]; + char message[256]; int requiredValue; diff --git a/src/switches.cpp b/src/switches.cpp index a02ae24..29c5232 100644 --- a/src/switches.cpp +++ b/src/switches.cpp @@ -25,7 +25,7 @@ void checkSwitchContact(Entity *ent) Switch *swt = (Switch*)map.switchList.getHead(); bool okayToActivate = false; - char message[100]; + char message[256]; while (swt->next != NULL) {