]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - progs.h
Fixed the WAV file loading code (loopstart was always 0 if the sound was looped)
[xonotic/darkplaces.git] / progs.h
diff --git a/progs.h b/progs.h
index e1e365c4166c9b70454375585277777783666e98..18d1588456c889d05086b93a5f743394a68e8b6e 100644 (file)
--- a/progs.h
+++ b/progs.h
@@ -171,7 +171,7 @@ void ED_ClearEdict (edict_t *e);
 char   *ED_NewString (const char *string);
 // returns a copy of the string allocated from the server's string heap
 
-void ED_Print (edict_t *ed);
+void ED_Print(edict_t *ed);
 void ED_Write (qfile_t *f, edict_t *ed);
 const char *ED_ParseEdict (const char *data, edict_t *ent);
 
@@ -182,6 +182,7 @@ void ED_LoadFromFile (const char *data);
 
 edict_t *EDICT_NUM_ERROR(int n, char *filename, int fileline);
 #define EDICT_NUM(n) (((n) >= 0 && (n) < sv.max_edicts) ? sv.edicts + (n) : EDICT_NUM_ERROR(n, __FILE__, __LINE__))
+#define EDICT_NUM_UNSIGNED(n) (((n) < sv.max_edicts) ? sv.edicts + (n) : EDICT_NUM_ERROR(n, __FILE__, __LINE__))
 
 //int NUM_FOR_EDICT_ERROR(edict_t *e);
 #define NUM_FOR_EDICT(e) ((edict_t *)(e) - sv.edicts)