# HG changeset patch # User unc0rr # Date 1541891653 -3600 # Node ID 3e551b0535fb7517c06bb1fe95141efd7ea2cce1 # Parent ab5e710d353d99867c57c9b5230b4767212b66f4 Fix birdy appearance/disappearance animation diff -r ab5e710d353d -r 3e551b0535fb hedgewars/uGearsHandlersMess.pas --- a/hedgewars/uGearsHandlersMess.pas Sat Nov 10 21:15:42 2018 +0100 +++ b/hedgewars/uGearsHandlersMess.pas Sun Nov 11 00:14:13 2018 +0100 @@ -4632,7 +4632,6 @@ Gear^.Hedgehog := nil; Gear^.Timer := 0; Gear^.State := Gear^.State or gstAnimation or gstTmpFlag; - Gear^.Timer := 0; Gear^.doStep := @doStepBirdyDisappear; CurAmmoGear := nil; isCursorVisible := false; diff -r ab5e710d353d -r 3e551b0535fb project_files/hwc/rtl/pmath.c --- a/project_files/hwc/rtl/pmath.c Sat Nov 10 21:15:42 2018 +0100 +++ b/project_files/hwc/rtl/pmath.c Sun Nov 11 00:14:13 2018 +0100 @@ -2,15 +2,6 @@ #include #include -/* - * power raises base to the power power. - * This is equivalent to exp(power*ln(base)). Therefore base should be non-negative. - */ -float fpcrtl_power(float base, float exponent) -{ - return exp(exponent * log(base)); -} - /* Currently the games only uses sign of an integer */ int fpcrtl_signi(int x) { diff -r ab5e710d353d -r 3e551b0535fb project_files/hwc/rtl/pmath.h --- a/project_files/hwc/rtl/pmath.h Sat Nov 10 21:15:42 2018 +0100 +++ b/project_files/hwc/rtl/pmath.h Sun Nov 11 00:14:13 2018 +0100 @@ -7,7 +7,7 @@ #define fpcrtl_min(a, b) ((a) < (b) ? (a) : (b)) #define fpcrtl_max(a, b) ((a) > (b) ? (a) : (b)) -float fpcrtl_power(float base, float exponent); +#define fpcrtl_power(a, b) pow(a, b) /* Currently the games only uses sign of an integer */ int fpcrtl_signi(int x);