mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
For me (helixhorned), do SDL_WarpMouse even in debugging builds again.
This introduces a Makefile variable EDUKE32_MY_DEVELOPER_ID, which is expected to come from the environment, so that minor disagreements/ preferences can be handled -- don't let it go overboard though! -- to keep the working directory clean of stuff that one doesn't actually work on. My ID is 805120924, i.e. "helix". git-svn-id: https://svn.eduke32.com/eduke32@2718 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
55bd1ecc34
commit
b9c553624b
2 changed files with 6 additions and 1 deletions
|
@ -179,6 +179,11 @@ ifneq (0,$(CLANG))
|
|||
BASECFLAGS+= -Wno-unused-value -Wno-parentheses
|
||||
endif
|
||||
|
||||
# This should come from the environment:
|
||||
ifdef EDUKE32_MY_DEVELOPER_ID
|
||||
BASECFLAGS+= -DMY_DEVELOPER_ID=$(EDUKE32_MY_DEVELOPER_ID)
|
||||
endif
|
||||
|
||||
ifneq (0,$(USE_LIBPNG))
|
||||
BASECFLAGS+= -DUSE_LIBPNG
|
||||
endif
|
||||
|
|
|
@ -1908,7 +1908,7 @@ int32_t handleevents(void)
|
|||
{
|
||||
mousex += ev.motion.xrel;
|
||||
mousey += ev.motion.yrel;
|
||||
#ifndef DEBUGGINGAIDS
|
||||
#if !defined DEBUGGINGAIDS || MY_DEVELOPER_ID==805120924
|
||||
SDL_WarpMouse(xdim>>1, ydim>>1);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue