mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Rewrote the code in Animations.cpp
Fixed gl_auto_closebox not closing containers in some cases.
This commit is contained in:
@@ -226,10 +226,10 @@ end
|
||||
procedure canuseweapon_handler begin
|
||||
variable critter, canWield;
|
||||
critter := get_sfall_arg;
|
||||
if (critter) then begin
|
||||
//if (critter) then begin
|
||||
canWield := check_weapon_change(critter, get_sfall_arg, true);
|
||||
//if (canWield != 0) then canWield := 1;
|
||||
set_sfall_arg(3, canWield); // override result
|
||||
// override result
|
||||
set_sfall_arg(3, canWield);
|
||||
set_sfall_return(canWield);
|
||||
end
|
||||
//end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user