aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rwxr-xr-xcode/client/cl_cgame.c4
-rwxr-xr-xcode/client/cl_ui.c5
-rwxr-xr-xcode/server/sv_game.c5
3 files changed, 3 insertions, 11 deletions
diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c
index 19ac57e..c2f6df7 100755
--- a/code/client/cl_cgame.c
+++ b/code/client/cl_cgame.c
@@ -623,10 +623,8 @@ int CL_CgameSystemCalls( int *args ) {
Com_Memcpy( VMA(1), VMA(2), args[3] );
return 0;
case CG_STRNCPY:
-#warning 64bit broken!
strncpy( VMA(1), VMA(2), args[3] );
-// Com_Printf("%s:%d %s() *** return value of CG_STRNCPY not 64bit clean\n", __FILE__, __LINE__, __FUNCTION__);
- return 0;
+ return args[1];
case CG_SIN:
return FloatAsInt( sin( VMF(1) ) );
case CG_COS:
diff --git a/code/client/cl_ui.c b/code/client/cl_ui.c
index 2c91991..66e6265 100755
--- a/code/client/cl_ui.c
+++ b/code/client/cl_ui.c
@@ -1043,11 +1043,8 @@ int CL_UISystemCalls( int *args ) {
return 0;
case UI_STRNCPY:
-#warning 64bit broken!
-// Com_Printf("%s:%d %s() *** return value of UI_STRNCPY not 64bit clean\n", __FILE__, __LINE__, __FUNCTION__);
-// Com_Printf("%s %d\n", VMA(2), args[3]);
strncpy( VMA(1), VMA(2), args[3] );
- return 0;
+ return args[1];
case UI_SIN:
return FloatAsInt( sin( VMF(1) ) );
diff --git a/code/server/sv_game.c b/code/server/sv_game.c
index 387b1a8..6c1faf8 100755
--- a/code/server/sv_game.c
+++ b/code/server/sv_game.c
@@ -828,11 +828,8 @@ int SV_GameSystemCalls( int *args ) {
return 0;
case TRAP_STRNCPY:
-#warning 64bit broken!
-// Com_Printf("%s:%d %s() *** return value of TRAP_STRNCPY not 64bit clean\n", __FILE__, __LINE__, __FUNCTION__);
-// Com_Printf("%s %d\n", VMA(2), args[3]);
strncpy( VMA(1), VMA(2), args[3] );
- return 0;
+ return args[1];
case TRAP_SIN:
return FloatAsInt( sin( VMF(1) ) );