mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
fix some incompatable pointer types
This commit is contained in:
parent
66e2ef1926
commit
e8c28cc3f3
1 changed files with 7 additions and 7 deletions
|
@ -156,7 +156,7 @@ get_hash_keys =
|
|||
|
||||
hlen = [list count];
|
||||
for(i = 0; i < hlen; i++) {
|
||||
binding = [list getItemAt: i];
|
||||
binding = (binding_t [])[list getItemAt: i];
|
||||
desc1 = get_keyname (binding.command, 1); // first key bound to
|
||||
desc2 = get_keyname (binding.command, 2); // second key bound to
|
||||
|
||||
|
@ -242,7 +242,7 @@ CB_MAIN_control_binding =
|
|||
integer (string text, integer key)
|
||||
CB_basic_control_binding =
|
||||
{
|
||||
local binding_t [] binding = [movement_bindings getItemAt: stoi (text)];
|
||||
local binding_t [] binding = (binding_t [])[movement_bindings getItemAt: stoi (text)];
|
||||
local integer ret = CB_MAIN_control_binding (binding, key);
|
||||
|
||||
// fetch all keynames (possible to optimize.. but not very neccessary)
|
||||
|
@ -279,7 +279,7 @@ DRAW_basic_control_binding =
|
|||
|
||||
hl = [movement_bindings count];
|
||||
for(i = 0; i < hl; i++) {
|
||||
local binding_t [] binding = [movement_bindings getItemAt: i];
|
||||
local binding_t [] binding = (binding_t [])[movement_bindings getItemAt: i];
|
||||
draw_val_item (x + 20, y + 40 + ( i * 10), bind_desc_pad,
|
||||
binding.text, binding.keys);
|
||||
}
|
||||
|
@ -319,7 +319,7 @@ MENU_basic_control_binding =
|
|||
integer (string text, integer key)
|
||||
CB_misc_control_binding =
|
||||
{
|
||||
local binding_t [] binding = [misc_bindings getItemAt: stoi (text)];
|
||||
local binding_t [] binding = (binding_t [])[misc_bindings getItemAt: stoi (text)];
|
||||
local integer ret = CB_MAIN_control_binding (binding, key);
|
||||
|
||||
// fetch all keynames (possible to optimize.. but not very neccessary)
|
||||
|
@ -356,7 +356,7 @@ DRAW_misc_control_binding =
|
|||
|
||||
hl = [misc_bindings count];
|
||||
for(i=0;i < hl; i++) {
|
||||
local binding_t [] binding = [misc_bindings getItemAt: i];
|
||||
local binding_t [] binding = (binding_t [])[misc_bindings getItemAt: i];
|
||||
draw_val_item (x + 20, y + 40+(i*10), bind_desc_pad,
|
||||
binding.text, binding.keys);
|
||||
}
|
||||
|
@ -395,7 +395,7 @@ MENU_misc_control_binding =
|
|||
integer (string text, integer key)
|
||||
CB_weapon_control_binding =
|
||||
{
|
||||
local binding_t [] binding = [weapon_bindings getItemAt: stoi (text)];
|
||||
local binding_t [] binding = (binding_t [])[weapon_bindings getItemAt: stoi (text)];
|
||||
local integer ret = CB_MAIN_control_binding (binding, key);
|
||||
|
||||
// fetch all keynames (possible to optimize.. but not very neccessary)
|
||||
|
@ -432,7 +432,7 @@ DRAW_weapon_control_binding =
|
|||
|
||||
hl = [weapon_bindings count];
|
||||
for(i = 0; i < hl; i++) {
|
||||
local binding_t [] binding = [weapon_bindings getItemAt: i];
|
||||
local binding_t [] binding = (binding_t [])[weapon_bindings getItemAt: i];
|
||||
draw_val_item (x + 20, y + 40 + (i * 10), bind_desc_pad,
|
||||
binding.text, binding.keys);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue