OSDN Git Service

- fixed: A_CountdownArg used 0 based indices although all uses of it assumed
authorChristoph Oelckers <coelckers@zdoom.fake>
Sat, 1 Mar 2008 16:59:17 +0000 (16:59 +0000)
committerChristoph Oelckers <coelckers@zdoom.fake>
Sat, 1 Mar 2008 16:59:17 +0000 (16:59 +0000)
  it is 1-based.
- added MF5_DONTRIP flag.
- added CheckActorFloorTexture, CheckActorCeilingTexture and
  GetActorLightLevel ACS functions.
- added IF_ADDITIVETIME flag to create powerups that add their duration
  to the one of the currently active item of the same type.
- fixed: bouncecount wasn't decreased when bouncing on walls.
- Added MF5_ALWAYSRESPAWN and MF5_NEVERRESPAWN flags that selectively
  enable or disable monster respawning regardless of skill setting.
- Prettified deprecated flag handling.

SVN r780 (trunk)

pcode.c
pcode.h
symbol.c

diff --git a/pcode.c b/pcode.c
index c2a277d..f07b841 100644 (file)
--- a/pcode.c
+++ b/pcode.c
@@ -448,6 +448,9 @@ static char *PCDNames[PCODE_COMMAND_COUNT] =
        "PCD_THINGDAMAGE2",\r
        "PCD_USEINVENTORY",\r
        "PCD_USEACTORINVENTORY",\r
+       "PCD_CHECKACTORCEILINGTEXTURE",\r
+       "PCD_CHECKACTORFLOORTEXTURE",\r
+       "PCD_GETACTORLIGHTLEVEL",\r
 };\r
 \r
 // CODE --------------------------------------------------------------------\r
diff --git a/pcode.h b/pcode.h
index f235eda..a2b988a 100644 (file)
--- a/pcode.h
+++ b/pcode.h
@@ -399,6 +399,9 @@ typedef enum
        PCD_THINGDAMAGE2,\r
        PCD_USEINVENTORY,\r
        PCD_USEACTORINVENTORY,\r
+       PCD_CHECKACTORCEILINGTEXTURE,\r
+       PCD_CHECKACTORFLOORTEXTURE,\r
+       PCD_GETACTORLIGHTLEVEL,\r
 \r
        PCODE_COMMAND_COUNT\r
 } pcd_t;\r
index acafe6c..feb622b 100644 (file)
--- a/symbol.c
+++ b/symbol.c
@@ -183,6 +183,9 @@ static internFuncDef_t InternalFunctions[] =
        { "thing_damage2", PCD_NOP, PCD_THINGDAMAGE2, 3, 0, 0, YES, NO },\r
        { "useinventory", PCD_NOP, PCD_USEINVENTORY, 1, 0, 0, YES, NO },\r
        { "useactorinventory", PCD_NOP, PCD_USEACTORINVENTORY, 2, 0, 0, YES, NO },\r
+       { "checkactorceilingtexture", PCD_NOP, PCD_CHECKACTORCEILINGTEXTURE, 2, 0, 0, YES, NO },\r
+       { "checkactorfloortexture", PCD_NOP, PCD_CHECKACTORFLOORTEXTURE, 2, 0, 0, YES, NO },\r
+       { "getactorlightlevel", PCD_NOP, PCD_GETACTORLIGHTLEVEL, 1, 0, 0, YES, NO },\r
        \r
        { NULL, PCD_NOP, PCD_NOP, 0, 0, 0, NO, NO }\r
 };\r