Salutare,
Pe strigat ! este ... Daca faci parte din regatul albastru nu poti vedea ce scriu cei de la regatul galbeni sau de la regatu rosu...
careva????
Problema Strigat
- Moț
-

- Mesaje: 2825
- Membru din: 03 Apr 2017, 15:00
- Aprecieri: 216
- Mulţumiri: 3040
- Discord: Copiază ID
- Ene
-

- Mesaje: 1659
- Membru din: 09 Sep 2016, 01:00
- Server: Clasic
- Regat: Jinno
- Aprecieri: 274
- Mulţumiri: 603
- Rezolvări prob.: 2
- Discord: Copiază ID
nu e bug.Nu ai pus chat global din sursa :/.metin21 scrie:UPPP
Deschide game/src/empire_text_convert.cppcauta
void ConvertEmpireText(DWORD dwEmpireID, char* szText, size_t len, int iPct)
{
if (dwEmpireID < 1 || dwEmpireID > 3 || len == 0)
return;
const STextConvertTable& rkTextConvTable = g_aTextConvTable[dwEmpireID - 1];
for (BYTE* pbText = reinterpret_cast<BYTE*>(szText) ; len > 0 && *pbText != '\0' ; --len, ++pbText)
{
if (number(1,100) > iPct)
{
if (*pbText & 0x80)
{
if (g_iUseLocale)
{
static char s_cChinaTable[][3] = {"?n","LL","L¤","?u","?d" };
int n = number(0, 4);
pbText[0] = s_cChinaTable[n][0];
pbText[1] = s_cChinaTable[n][1];
}
else
{
if (pbText[0] >= 0xB0 && pbText[0] <= 0xC8 && pbText[1] >= 0xA1 && pbText[1] <= 0xFE)
{
UINT uHanPos = (pbText[0] - 0xB0) * (0xFE - 0xA1 + 1) + (pbText[1] - 0xA1);
pbText[0] = rkTextConvTable.aacHan[uHanPos][0];
pbText[1] = rkTextConvTable.aacHan[uHanPos][1];
}
else if ( pbText[0] == 0xA4 )
{
if ( pbText[1] >=0xA1 && pbText[1] <= 0xBE )
{
pbText[0] = rkTextConvTable.aacJaum[pbText[1]-0xA1][0];
pbText[1] = rkTextConvTable.aacJaum[pbText[1]-0xA1][1];
}
else if ( pbText[1] >= 0xBF && pbText[1] <= 0xD3 )
{
pbText[0] = rkTextConvTable.aacMoum[pbText[1]-0xBF][0];
pbText[1] = rkTextConvTable.aacMoum[pbText[1]-0xBF][1];
}
}
}
++pbText;
--len;
}
else
{
if (*pbText >= 'a' && *pbText <= 'z')
{
*pbText = rkTextConvTable.acLower[*pbText - 'a'];
}
else if (*pbText >= 'A' && *pbText <= 'Z')
{
*pbText = rkTextConvTable.acUpper[*pbText - 'A'];
}
}
}
else
{
if (*pbText & 0x80)
{
++pbText;
--len;
}
}
}
}
si modifica in void ConvertEmpireText(DWORD dwEmpireID, char* szText, size_t len, int iPct)
{
szText;
}Am testat, Dar tot nu merge...Pongo A.K.A Titan scrie:Deschide game/src/empire_text_convert.cppcautavoid ConvertEmpireText(DWORD dwEmpireID, char* szText, size_t len, int iPct) { if (dwEmpireID < 1 || dwEmpireID > 3 || len == 0) return; const STextConvertTable& rkTextConvTable = g_aTextConvTable[dwEmpireID - 1]; for (BYTE* pbText = reinterpret_cast<BYTE*>(szText) ; len > 0 && *pbText != '\0' ; --len, ++pbText) { if (number(1,100) > iPct) { if (*pbText & 0x80) { if (g_iUseLocale) { static char s_cChinaTable[][3] = {"?n","LL","L¤","?u","?d" }; int n = number(0, 4); pbText[0] = s_cChinaTable[n][0]; pbText[1] = s_cChinaTable[n][1]; } else { if (pbText[0] >= 0xB0 && pbText[0] <= 0xC8 && pbText[1] >= 0xA1 && pbText[1] <= 0xFE) { UINT uHanPos = (pbText[0] - 0xB0) * (0xFE - 0xA1 + 1) + (pbText[1] - 0xA1); pbText[0] = rkTextConvTable.aacHan[uHanPos][0]; pbText[1] = rkTextConvTable.aacHan[uHanPos][1]; } else if ( pbText[0] == 0xA4 ) { if ( pbText[1] >=0xA1 && pbText[1] <= 0xBE ) { pbText[0] = rkTextConvTable.aacJaum[pbText[1]-0xA1][0]; pbText[1] = rkTextConvTable.aacJaum[pbText[1]-0xA1][1]; } else if ( pbText[1] >= 0xBF && pbText[1] <= 0xD3 ) { pbText[0] = rkTextConvTable.aacMoum[pbText[1]-0xBF][0]; pbText[1] = rkTextConvTable.aacMoum[pbText[1]-0xBF][1]; } } } ++pbText; --len; } else { if (*pbText >= 'a' && *pbText <= 'z') { *pbText = rkTextConvTable.acLower[*pbText - 'a']; } else if (*pbText >= 'A' && *pbText <= 'Z') { *pbText = rkTextConvTable.acUpper[*pbText - 'A']; } } } else { if (*pbText & 0x80) { ++pbText; --len; } } } }si modifica in
void ConvertEmpireText(DWORD dwEmpireID, char* szText, size_t len, int iPct) { szText; }
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Google [Bot] și 51 vizitatori

