I'm back! There are a lot of messages I'm afraid I can't read all of them.
As I understood the question is about the length of the titles.
In the file
sis.h;
Код: Выделить всё
#define SIS_NAME_SIZE 32 // name lengthes of the flagman, the captain and planets
#define SAVE_NAME_SIZE 64 // name length of saves
The flagman parameters are truncated at string print out by "%-7.7s" in the file
sis.c - DrawFlagshipStats().Need to change it to "%s".
Код: Выделить всё
snprintf (buf, sizeof buf, "%s", describeWeapon (GLOBAL_SIS (ModuleSlots[15])));
font_DrawText (&t);
t.baseline.y += leading;
snprintf (buf, sizeof buf, "%s", describeWeapon (GLOBAL_SIS (ModuleSlots[14])));
font_DrawText (&t);
t.baseline.y += leading;
snprintf (buf, sizeof buf, "%s", describeWeapon (GLOBAL_SIS (ModuleSlots[13])));
font_DrawText (&t);
t.baseline.y += leading;
snprintf (buf, sizeof buf, "%s", describeWeapon (GLOBAL_SIS (ModuleSlots[0])));
font_DrawText (&t);
If there are any questions, I'm ready to help.
---------
Я вернулся! Сообщений много боюсь все не осилю.
Как я понял, вопрос о длине названий.
В файле
sis.h;
Код: Выделить всё
#define SIS_NAME_SIZE 32 // длина имени корабля, капитана и планет
#define SAVE_NAME_SIZE 64 // длина сохранений
Параметры флагмана обрезаются при выводе строки через "%-7.7s" в файле
sis.c - DrawFlagshipStats().
Надо заменить на "%s".
Код: Выделить всё
snprintf (buf, sizeof buf, "%s", describeWeapon (GLOBAL_SIS (ModuleSlots[15])));
font_DrawText (&t);
t.baseline.y += leading;
snprintf (buf, sizeof buf, "%s", describeWeapon (GLOBAL_SIS (ModuleSlots[14])));
font_DrawText (&t);
t.baseline.y += leading;
snprintf (buf, sizeof buf, "%s", describeWeapon (GLOBAL_SIS (ModuleSlots[13])));
font_DrawText (&t);
t.baseline.y += leading;
snprintf (buf, sizeof buf, "%s", describeWeapon (GLOBAL_SIS (ModuleSlots[0])));
font_DrawText (&t);
Если есть ещё вопросы - готов помочь.