From de2a14290f641920cf2a46562711c3901f9ed11f Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 7 Feb 2015 17:29:12 +0000 Subject: [PATCH] LunaCON: make -fbad-getactorvar-use-pli enabled by default. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@4962 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/lunatic/doc/lunacon.txt | 2 +- polymer/eduke32/source/lunatic/lunacon.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/lunatic/doc/lunacon.txt b/polymer/eduke32/source/lunatic/doc/lunacon.txt index 1373e9bb4..e5db65e01 100644 --- a/polymer/eduke32/source/lunatic/doc/lunacon.txt +++ b/polymer/eduke32/source/lunatic/doc/lunacon.txt @@ -196,7 +196,7 @@ to positive ones and may entail undesired behavior. NOTE: From CON as well as Lunatic, `hitag` and `lotag` are seen as *signed* 16-bit integers. -`-fbad-getactorvar-use-pli` (default: off):: +`-fbad-getactorvar-use-pli` (default: on):: If enabled and `-Werror-bad-getactorvar` is off, a `getactorvar` of a per-player variable will result the gamevar being indexed with the current player instead of the provided index. This is the (probably unintended) diff --git a/polymer/eduke32/source/lunatic/lunacon.lua b/polymer/eduke32/source/lunatic/lunacon.lua index 027a9a966..655c1516c 100644 --- a/polymer/eduke32/source/lunatic/lunacon.lua +++ b/polymer/eduke32/source/lunatic/lunacon.lua @@ -126,7 +126,7 @@ local g_warn = { ["not-redefined"]=true, ["bad-identifier"]=false, local g_cgopt = { ["no"]=false, ["debug-lineinfo"]=false, ["gendir"]=nil, ["cache-sap"]=false, ["error-nostate"]=true, ["playervar"]=true, ["trapv"]=false, ["wrapv"]=false, - ["bad-getactorvar-use-pli"]=false, + ["bad-getactorvar-use-pli"]=true, ["error-nonlocal-userdef"]=true, ["error-negative-tag-write"]=false, }