mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 16:29:00 +00:00
fix Messages.cpp
This commit is contained in:
parent
ff02fc1a19
commit
649aea7bf7
1 changed files with 49 additions and 49 deletions
|
@ -442,7 +442,7 @@ CMessages::InsertPlayerControlKeysInString(wchar *str)
|
||||||
for (i = 0; i < strSize;) {
|
for (i = 0; i < strSize;) {
|
||||||
if (str[i] == '~' && str[i + 1] == 'k' && str[i + 2] == '~') {
|
if (str[i] == '~' && str[i + 1] == 'k' && str[i + 2] == '~') {
|
||||||
i += 4;
|
i += 4;
|
||||||
for (int32 cont = 0; cont < TOTAL_CONTROL_ACTIONS; cont++) {
|
for (int32 cont = 0; cont < MAX_CONTROLLERACTIONS; cont++) {
|
||||||
uint16 contSize = GetWideStringLength(ControlsManager.m_aActionNames[cont]);
|
uint16 contSize = GetWideStringLength(ControlsManager.m_aActionNames[cont]);
|
||||||
if (contSize != 0) {
|
if (contSize != 0) {
|
||||||
if (WideStringCompare(&str[i], ControlsManager.m_aActionNames[cont], contSize)) {
|
if (WideStringCompare(&str[i], ControlsManager.m_aActionNames[cont], contSize)) {
|
||||||
|
|
Loading…
Reference in a new issue