Merge branch 'master' of https://github.com/rheit/zdoom into g1.8

This commit is contained in:
alexey.lysiuk 2016-01-24 17:01:58 +02:00
commit b48c043dc9
3 changed files with 5 additions and 2 deletions

View file

@ -32,6 +32,8 @@
AActor *COPY_AAPTR(AActor *origin, int selector)
{
if (selector == AAPTR_DEFAULT) return origin;
if (origin)
{
if (origin->player)

View file

@ -157,8 +157,9 @@ private:
IOHIDElementCookie cookie;
int32_t value;
DigitalButton(const IOHIDElementCookie cookie)
explicit DigitalButton(const IOHIDElementCookie cookie)
: cookie(cookie)
, value(0)
{ }
};

View file

@ -4060,7 +4060,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetAngle)
ACTION_PARAM_INT(ptr, 2);
AActor *ref = COPY_AAPTR(self, ptr);
if (ref != NULL)
if (ref == NULL)
{
ACTION_SET_RESULT(false);
return;