• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum for TSPG.


Commit MetaInfo

Revisão3dc3179a77a509741a8c85ed52cc0b01982c6ff1 (tree)
Hora2017-03-26 00:21:33
AutorBenjamin Berkels <torr.samaho@quan...>
CommiterBenjamin Berkels

Mensagem de Log

Fixed: Angle arguments in DECORATE didn't work properly on ARM devices like the Raspberry Pi (adapted from the corresponding ZDoom fix, fixes 2773).

Mudança Sumário

Diff

diff -r 16ef985b4dad -r 3dc3179a77a5 docs/zandronum-history.txt
--- a/docs/zandronum-history.txt Sun Mar 19 21:58:53 2017 +0100
+++ b/docs/zandronum-history.txt Sat Mar 25 16:21:33 2017 +0100
@@ -117,6 +117,7 @@
117117 - - Fixed a potential client crash related to the firing sound of a railgun. [Torr Samaho]
118118 - - Fixed: Blood splatter caused unnecessary network traffic. [Torr Samaho]
119119 - - Fixed: A_FiredSpawnRock and A_FiredSplotch caused unnecessary network traffic. [Torr Samaho]
120+- - Fixed: Angle arguments in DECORATE didn't work properly on ARM devices like the Raspberry Pi (adapted from the corresponding ZDoom fix). [Torr Samaho]
120121 ! - Changed: Spectators can now interact with gravity and use the fly/land commands. [Leonard]
121122 ! - Save games now contain information about the renderer used to create the save. This allows to print a proper error message when an incompatible save is tried to be loaded. [Torr Samaho]
122123 ! - Clients don't error out anymore when encountering a division by zero in a DECORATE expression. Instead, a one time warning is printed on the first occasion and the result is assumed to be zero. This is necessary since clients can encounter this in valid DECORATE code due to Zandronum's jump handling. [Torr Samaho]
diff -r 16ef985b4dad -r 3dc3179a77a5 src/m_fixed.h
--- a/src/m_fixed.h Sun Mar 19 21:58:53 2017 +0100
+++ b/src/m_fixed.h Sat Mar 25 16:21:33 2017 +0100
@@ -141,4 +141,12 @@
141141 #define FIXED2FLOAT(f) ((f) / float(65536))
142142 #define FIXED2DBL(f) ((f) / double(65536))
143143
144+#define ANGLE2DBL(f) ((f) * (90./ANGLE_90))
145+#define ANGLE2FLOAT(f) (float((f) * (90./ANGLE_90)))
146+#define FLOAT2ANGLE(f) ((angle_t)xs_CRoundToInt((f) * (ANGLE_90/90.)))
147+
148+#define ANGLE2RAD(f) ((f) * (M_PI/ANGLE_180))
149+#define ANGLE2RADF(f) ((f) * float(M_PI/ANGLE_180))
150+#define RAD2ANGLE(f) ((angle_t)xs_CRoundToInt((f) * (ANGLE_180/M_PI)))
151+
144152 #endif
diff -r 16ef985b4dad -r 3dc3179a77a5 src/thingdef/thingdef.h
--- a/src/thingdef/thingdef.h Sun Mar 19 21:58:53 2017 +0100
+++ b/src/thingdef/thingdef.h Sat Mar 25 16:21:33 2017 +0100
@@ -430,7 +430,7 @@
430430 #define ACTION_PARAM_NAME(var,i) \
431431 FName var = EvalExpressionName(ParameterIndex+i, self);
432432 #define ACTION_PARAM_ANGLE(var,i) \
433- angle_t var = angle_t(EvalExpressionF(ParameterIndex+i, self)*ANGLE_90/90.f);
433+ angle_t var = FLOAT2ANGLE(EvalExpressionF(ParameterIndex+i, self));
434434
435435 #define ACTION_SET_RESULT(v) if (statecall != NULL) statecall->Result = v;
436436