mirror of
https://github.com/yquake2/slightmechanicaldestruction.git
synced 2024-11-25 13:41:33 +00:00
Button to open the door on second level(#4)
This commit is contained in:
parent
c192e1c1f1
commit
f0e2043445
2 changed files with 31 additions and 22 deletions
33
Makefile
33
Makefile
|
@ -33,19 +33,28 @@ endif
|
||||||
|
|
||||||
# Detect the architecture
|
# Detect the architecture
|
||||||
ifeq ($(OSTYPE), Windows)
|
ifeq ($(OSTYPE), Windows)
|
||||||
# At this time only i386 is supported on Windows
|
ifdef MINGW_CHOST
|
||||||
ARCH := i386
|
ifeq ($(MINGW_CHOST), x86_64-w64-mingw32)
|
||||||
# seems like mingw doesn't set CC by default
|
ARCH ?= x86_64
|
||||||
CC := gcc
|
else # i686-w64-mingw32
|
||||||
else
|
ARCH ?= i386
|
||||||
# Some platforms call it "amd64" and some "x86_64"
|
endif
|
||||||
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/amd64/x86_64/)
|
else # windows, but MINGW_CHOST not defined
|
||||||
|
ifdef PROCESSOR_ARCHITEW6432
|
||||||
|
# 64 bit Windows
|
||||||
|
ARCH ?= $(PROCESSOR_ARCHITEW6432)
|
||||||
|
else
|
||||||
|
# 32 bit Windows
|
||||||
|
ARCH ?= $(PROCESSOR_ARCHITECTURE)
|
||||||
|
endif
|
||||||
|
endif # windows but MINGW_CHOST not defined
|
||||||
|
else
|
||||||
|
ifneq ($(OSTYPE), Darwin)
|
||||||
|
# Normalize some abiguous ARCH strings
|
||||||
|
ARCH ?= $(shell uname -m | sed -e 's/i.86/i386/' -e 's/amd64/x86_64/' -e 's/^arm.*/arm/')
|
||||||
|
else
|
||||||
|
ARCH ?= $(shell uname -m)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Refuse all other platforms as a firewall against PEBKAC
|
|
||||||
# (You'll need some #ifdef for your unsupported platform!)
|
|
||||||
ifeq ($(findstring $(ARCH), i386 x86_64 sparc64 ia64),)
|
|
||||||
$(error arch $(ARCH) is currently not supported)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
|
@ -2889,6 +2889,7 @@ void ClientThink (edict_t *ent, usercmd_t *ucmd)
|
||||||
{
|
{
|
||||||
if (pm.touchents[j] == other)
|
if (pm.touchents[j] == other)
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (j != i)
|
if (j != i)
|
||||||
continue; // duplicated
|
continue; // duplicated
|
||||||
|
@ -2900,7 +2901,6 @@ void ClientThink (edict_t *ent, usercmd_t *ucmd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
client->oldbuttons = client->buttons;
|
client->oldbuttons = client->buttons;
|
||||||
client->buttons = ucmd->buttons;
|
client->buttons = ucmd->buttons;
|
||||||
|
|
Loading…
Reference in a new issue