mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
LunaCON: allow writing -1 to player[].newowner.
For the other player members, where formerly negative values were allowed to be written, only -1 is now. git-svn-id: https://svn.eduke32.com/eduke32@5192 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1fc7e10843
commit
dd2f06b869
2 changed files with 3 additions and 3 deletions
|
@ -559,7 +559,7 @@ local PlayerLabels = {
|
|||
ohoriz = PL".ohoriz",
|
||||
ohorizoff = PL".ohorizoff",
|
||||
|
||||
newowner = { PL".newowner" },
|
||||
newowner = PL".newowner",
|
||||
|
||||
jumping_counter = PL".jumping_counter",
|
||||
airleft = PL".airleft",
|
||||
|
|
|
@ -248,7 +248,7 @@ __attribute__((packed)) struct {
|
|||
int16_t pyoff, opyoff;
|
||||
|
||||
int16_t horiz, horizoff, ohoriz, ohorizoff;
|
||||
const int16_t newowner;
|
||||
const<I-> int16_t newowner;
|
||||
int16_t jumping_counter, airleft;
|
||||
int16_t fta;
|
||||
const<Q> int16_t ftq;
|
||||
|
@ -1470,7 +1470,7 @@ local player_mt = {
|
|||
local allowneg = DukePlayer_prot_allowneg[key]
|
||||
assert(type(allowneg)=="boolean")
|
||||
|
||||
if (allowneg==false or not (val < 0)) then
|
||||
if (allowneg==false or not (val == -1)) then
|
||||
DukePlayer_prot_chkfunc[key](val)
|
||||
end
|
||||
ffi.cast(player_ptr_ct, p)[key] = val
|
||||
|
|
Loading…
Reference in a new issue