]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - progsvm.h
Fixed a bug in the Ogg Vorbis streaming code that can cause sound files to be unplaya...
[xonotic/darkplaces.git] / progsvm.h
index eb2215bbaeea2fc04ab1979f99bc44ce20e0a24d..d461da318f6fc010346fc2c370b26fb39bf41532 100644 (file)
--- a/progsvm.h
+++ b/progsvm.h
@@ -364,6 +364,7 @@ void PRVM_LoadProgs (const char *filename, int numrequiredfunc, char **required_
 
 void PRVM_Profile_f (void);
 
+void PRVM_PrintState(void);
 void PRVM_CrashAll (void);
 void PRVM_Crash (void);
 
@@ -374,7 +375,7 @@ void PRVM_ED_ClearEdict (prvm_edict_t *e);
 char *PRVM_ED_NewString (const char *string);
 // returns a copy of the string allocated from the server's string heap
 
-void PRVM_ED_Print (prvm_edict_t *ed);
+void PRVM_ED_Print(prvm_edict_t *ed);
 void PRVM_ED_Write (qfile_t *f, prvm_edict_t *ed);
 const char *PRVM_ED_ParseEdict (const char *data, prvm_edict_t *ent);
 
@@ -422,7 +423,7 @@ void PRVM_ED_PrintEdicts_f (void);
 void PRVM_ED_PrintNum (int ent);
 
 #define PRVM_GetString(num) (prog->strings + num)
-#define PRVM_SetString(s) ((int) (s - prog->strings))
+#define PRVM_SetString(s)   ((int) (s) ? (s - prog->strings) : 0)
 
 //============================================================================