]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
PR_SetString and PRVM_SetString now point to pr_strings - resp. prog->strings if...
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 20 Dec 2003 18:21:18 +0000 (18:21 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 20 Dec 2003 18:21:18 +0000 (18:21 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3745 d7cf8633-e32d-0410-b094-e92efae38249

progs.h
progsvm.h
todo

diff --git a/progs.h b/progs.h
index 0ee48852ea793e863b49c298d721cd5b957255d4..b6fb5d2b31642b84c833c23a6ed6a422ae5b6d7d 100644 (file)
--- a/progs.h
+++ b/progs.h
@@ -224,8 +224,8 @@ void PR_Execute_ProgsLoaded(void);
 void ED_PrintEdicts (void);
 void ED_PrintNum (int ent);
 
-#define PR_GetString(num) (pr_strings + num)
-#define PR_SetString(s) ((int) (s - pr_strings))
+#define PR_GetString(num) (pr_strings + num) 
+#define PR_SetString(s)   ((int) (s) ? (s - pr_strings) : 0)
 
 #endif
 
index eb2215bbaeea2fc04ab1979f99bc44ce20e0a24d..181939d902b94212afe086f49033aebd77110154 100644 (file)
--- a/progsvm.h
+++ b/progsvm.h
@@ -422,7 +422,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)
 
 //============================================================================
 
diff --git a/todo b/todo
index 1ab5e93bffbdf1c904b666e2e52d7f21003714c9..253a1f382728e394a4b4329fc85ee76fd9345deb 100644 (file)
--- a/todo
+++ b/todo
@@ -104,7 +104,7 @@ d darkplaces: fix key based turning being affected by slowmo - it should not be
 -n darkplaces: make sure EF_FULLBRIGHT works on bmodels (FrikaC)
 -n darkplaces: make sure EF_FULLBRIGHT works on models (FrikaC)
 -n darkplaces: make sure EF_FULLBRIGHT works on sprites (FrikaC)
-0 darkplaces: make sure PR_SetString points NULL strings at pr_strings (which would be an offset of 0) (Fuh)
+-n darkplaces: make sure PR_SetString points NULL strings at pr_strings (which would be an offset of 0) (Fuh)
 0 darkplaces: make sure QuakeDoneQuick works (Chris Kemp)
 0 darkplaces: make sure r_fullbright works
 0 darkplaces: make sure that sky works without a valid size (just treat it as single layer clouds or non-animated) (tell Vermeulen)