Открыть боковую панель
OpenXRay
xray-16
Коммиты
854ed039
Коммит
854ed039
создал
Авг 12, 2023
по автору
xottab-duty
Просмотр файлов
xrEngine/xr_level_controller.cpp: added assertion to check actions IDs match
владелец
21a8a04e
Изменения
1
Скрыть пробелы
Построчно
Рядом
src/xrEngine/xr_level_controller.cpp
Просмотр файла @
854ed039
...
...
@@ -549,8 +549,15 @@ void initialize_bindings()
}
#endif
for
(
int
idx
=
0
;
idx
<
bindings_count
;
++
idx
)
for
(
size_t
idx
=
0
;
idx
<
bindings_count
;
++
idx
)
{
R_ASSERT3
(
actions
[
idx
].
id
==
(
EGameActions
)
idx
,
make_string
(
"actions array and EGameActions IDs mismatch: %s has index %zu, but correct index is %u"
,
actions
[
idx
].
action_name
,
idx
,
actions
[
idx
].
id
).
c_str
(),
"Did you added action to EGameActions enum, but didn't added it to 'actions' array in the correct place?"
);
g_key_bindings
[
idx
].
m_action
=
&
actions
[
idx
];
}
}
static
void
TranslateBinding
(
key_binding
&
keyBinding
,
action_binding_desc
&
actionBinding
)
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать