mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix some errors picked up by the recent changes to qfcc
This commit is contained in:
parent
d20b8bf0c1
commit
a48b2dd103
2 changed files with 4 additions and 4 deletions
|
@ -108,13 +108,13 @@ init_binding_hash =
|
|||
|
||||
movement_bindings = [[Array alloc] init];
|
||||
for (i = 0; i < @sizeof (movement_binding_list) / @sizeof (movement_binding_list[0]); i++)
|
||||
[movement_bindings addItem: new_binding (movement_binding_list[i])];
|
||||
[movement_bindings addItem: (id)new_binding (movement_binding_list[i])];
|
||||
misc_bindings = [[Array alloc] init];
|
||||
for (i = 0; i < @sizeof (misc_binding_list) / @sizeof (misc_binding_list[0]); i++)
|
||||
[misc_bindings addItem: new_binding (misc_binding_list[i])];
|
||||
[misc_bindings addItem: (id)new_binding (misc_binding_list[i])];
|
||||
weapon_bindings = [[Array alloc] init];
|
||||
for (i = 0; i < @sizeof (weapon_binding_list) / @sizeof (weapon_binding_list[0]); i++)
|
||||
[weapon_bindings addItem: new_binding (weapon_binding_list[i])];
|
||||
[weapon_bindings addItem: (id)new_binding (weapon_binding_list[i])];
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
org = trace_endpos - v_forward * 4;
|
||||
|
||||
if ([trace_ent.@this takeDamage:self :s :s :damage])
|
||||
if ([trace_ent.@this takeDamage:self :owner :owner :damage])
|
||||
SpawnBlood (org, 20);
|
||||
else {
|
||||
sound (s, CHAN_WEAPON, "player/axhit2.wav", 1, ATTN_NORM);
|
||||
|
|
Loading…
Reference in a new issue