- Fixed: PrintAlias passed FString objects directly to Printf.

- Added bitwise not (~) operator to ACS.


SVN r352 (trunk)
This commit is contained in:
Christoph Oelckers 2006-10-09 15:55:47 +00:00
parent 3dabd38359
commit 92c3a89255
5 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,7 @@
October 7, 2006 (Changes by Graf Zahl)
- Fixed: PrintAlias passed FString objects directly to Printf.
- Added bitwise not (~) operator to ACS.
October 6, 2006 (Changes by Graf Zahl) October 6, 2006 (Changes by Graf Zahl)
- Fixed: Hires texture replacements must call AddPatch if the texture - Fixed: Hires texture replacements must call AddPatch if the texture
isn't defined yet in order to replace lumps that are not in the isn't defined yet in order to replace lumps that are not in the

View file

@ -993,11 +993,11 @@ void FConsoleAlias::PrintAlias ()
{ {
if (m_Command[0]) if (m_Command[0])
{ {
Printf (TEXTCOLOR_YELLOW "%s : %s\n", m_Name, m_Command[0]); Printf (TEXTCOLOR_YELLOW "%s : %s\n", m_Name, m_Command[0].GetChars());
} }
if (m_Command[1]) if (m_Command[1])
{ {
Printf (TEXTCOLOR_ORANGE "%s : %s\n", m_Name, m_Command[1]); Printf (TEXTCOLOR_ORANGE "%s : %s\n", m_Name, m_Command[1].GetChars());
} }
} }

View file

@ -1,6 +1,8 @@
// cmdlib.c (mostly borrowed from the Q2 source) // cmdlib.c (mostly borrowed from the Q2 source)
#ifdef _WIN32
#include <direct.h> #include <direct.h>
#endif
#include "doomtype.h" #include "doomtype.h"
#include "cmdlib.h" #include "cmdlib.h"
#include "i_system.h" #include "i_system.h"

View file

@ -3524,6 +3524,10 @@ int DLevelScript::RunScript ()
STACK(1) = !STACK(1); STACK(1) = !STACK(1);
break; break;
case PCD_NEGATEBINARY:
STACK(1) = ~STACK(1);
break;
case PCD_LSHIFT: case PCD_LSHIFT:
STACK(2) = (STACK(2) << STACK(1)); STACK(2) = (STACK(2) << STACK(1));
sp--; sp--;

View file

@ -535,7 +535,7 @@ public:
PCD_CHANGELEVEL, PCD_CHANGELEVEL,
PCD_SECTORDAMAGE, PCD_SECTORDAMAGE,
PCD_REPLACETEXTURES, PCD_REPLACETEXTURES,
/*330*/ /*330*/ PCD_NEGATEBINARY,
PCODE_COMMAND_COUNT PCODE_COMMAND_COUNT
}; };