- Fixed: A_Explode wants the distance parameter as an int, not a fixed_t.

- some minor DECORATE fixes.


SVN r1173 (trunk)
This commit is contained in:
Christoph Oelckers 2008-08-16 08:11:39 +00:00
parent 909656c7c5
commit fcdef6a0de
9 changed files with 20 additions and 15 deletions

View file

@ -1,3 +1,7 @@
August 16, 2008 (Changes by Graf Zahl)
- Fixed: A_Explode wants the distance parameter as an int, not a fixed_t.
- some minor DECORATE fixes.
August 14, 2008 (Changes by Graf Zahl)
- Fixed: The count parameter of A_Jump is a constant, not an expression.
- Fixed: A_Jump used a wrong index into the jump address table.

View file

@ -222,9 +222,9 @@ FString ExtractFileBase (const char *path, bool include_extension)
ParseNum / ParseHex
==============
*/
int ParseHex (char *hex)
int ParseHex (const char *hex)
{
char *str;
const char *str;
int num;
num = 0;
@ -250,7 +250,7 @@ int ParseHex (char *hex)
}
int ParseNum (char *str)
int ParseNum (const char *str)
{
if (str[0] == '$')
return ParseHex (str+1);
@ -262,7 +262,7 @@ int ParseNum (char *str)
// [RH] Returns true if the specified string is a valid decimal number
bool IsNum (char *str)
bool IsNum (const char *str)
{
while (*str)
{

View file

@ -39,9 +39,9 @@ void DefaultExtension (FString &path, const char *extension);
FString ExtractFilePath (const char *path);
FString ExtractFileBase (const char *path, bool keep_extension=false);
int ParseHex (char *str);
int ParseNum (char *str);
bool IsNum (char *str); // [RH] added
int ParseHex (const char *str);
int ParseNum (const char *str);
bool IsNum (const char *str); // [RH] added
char *copystring(const char *s);
void ReplaceString (char **ptr, const char *str);

View file

@ -764,7 +764,7 @@ static void G_DoParseMapInfo (int lump)
case MITL_MAP: // map <MAPNAME> <Nice Name>
{
char maptemp[8];
char *mapname;
const char *mapname;
levelflags = defaultinfo.flags;
sc.MustGetString ();
@ -989,7 +989,7 @@ static void ParseMapInfoLower (FScanner &sc,
EndSequence newSeq;
bool useseq = false;
char maptemp[8];
char *mapname;
const char *mapname;
sc.MustGetString ();
mapname = sc.String;

View file

@ -140,7 +140,7 @@ struct SBarInfo
int getSignedInteger(FScanner &sc); //returns a signed integer.
int newImage(const char* patchname);
void Init();
EColorRange GetTranslation(FScanner &sc, char* translation);
EColorRange GetTranslation(FScanner &sc, const char* translation);
SBarInfo();
SBarInfo(int lumpnum);
~SBarInfo();

View file

@ -1344,7 +1344,7 @@ int SBarInfo::newImage(const char *patchname)
}
//converts a string into a tranlation.
EColorRange SBarInfo::GetTranslation(FScanner &sc, char* translation)
EColorRange SBarInfo::GetTranslation(FScanner &sc, const char* translation)
{
EColorRange returnVal = CR_UNTRANSLATED;
FString namedTranslation; //we must send in "[translation]"

View file

@ -565,7 +565,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Explode)
{
ACTION_PARAM_START(4);
ACTION_PARAM_INT(damage, 0);
ACTION_PARAM_FIXED(distance, 1);
ACTION_PARAM_INT(distance, 1);
ACTION_PARAM_BOOL(hurtSource, 2);
ACTION_PARAM_BOOL(alert, 3);

View file

@ -6,8 +6,8 @@ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated/dehsupp.lmp
DEPENDS dehsupp ${CMAKE_CURRENT_SOURCE_DIR}/sources/dehsupp.txt )
add_custom_command( OUTPUT ${ZDOOM_OUTPUT_DIR}/zdoom.pk3
COMMAND ${CMAKE_BINARY_DIR}/tools/zipdir/zipdir ${ZDOOM_OUTPUT_DIR}/zdoom.pk3 ${CMAKE_CURRENT_SOURCE_DIR}/static ${CMAKE_CURRENT_BINARY_DIR}/generated
DEPENDS zipdir ${CMAKE_CURRENT_BINARY_DIR}/generated/dehsupp.lmp )
COMMAND ${CMAKE_BINARY_DIR}/tools/zipdir/zipdir ${ZDOOM_OUTPUT_DIR}/zdoom.pk3 ${CMAKE_CURRENT_SOURCE_DIR}/static ${CMAKE_CURRENT_BINARY_DIR}/generated
DEPENDS zipdir ${CMAKE_CURRENT_BINARY_DIR}/generated/dehsupp.lmp ${CMAKE_CURRENT_SOURCE_DIR}/static )
add_custom_target( pk3 ALL
DEPENDS ${ZDOOM_OUTPUT_DIR}/zdoom.pk3 )

View file

@ -1768,6 +1768,7 @@ ACTOR CeilingTurret 27
Mass 10000000
Monster
-SOLID
-CANPASS
+AMBUSH
+SPAWNCEILING
+NOGRAVITY