summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-10-11 16:14:41 +0000
committerTim Angus <tim@ngus.net>2002-10-11 16:14:41 +0000
commit50b26bd0b69fbdd659c960e9b6227a60d31fb3ca (patch)
treeddd64ab60595e1a12c7abffdbec10fecbbbb12c8 /src/cgame
parent87ec2cf6d4fae86b41330fd835ade3945c313abd (diff)
* Alien staging health modification
* Fixed a bunch of SIG_SEGV bugs
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_ents.c4
-rw-r--r--src/cgame/cg_public.h1
-rw-r--r--src/cgame/cg_syscalls.c5
3 files changed, 8 insertions, 2 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c
index 55940b34..38e4c798 100644
--- a/src/cgame/cg_ents.c
+++ b/src/cgame/cg_ents.c
@@ -475,10 +475,10 @@ static void CG_LightFlare( centity_t *cent )
//can only see the flare when in front of it
flare.radius = len / es->origin2[ 0 ];
- if( es->origin2[ 1 ] == 0 )
+ if( es->origin2[ 2 ] == 0 )
srcRadius = srLocal = flare.radius / 2.0f;
else
- srcRadius = srLocal = len / es->origin2[ 1 ];
+ srcRadius = srLocal = len / es->origin2[ 2 ];
maxAngle = es->origin2[ 1 ];
diff --git a/src/cgame/cg_public.h b/src/cgame/cg_public.h
index c97b68b9..ecc948c1 100644
--- a/src/cgame/cg_public.h
+++ b/src/cgame/cg_public.h
@@ -156,6 +156,7 @@ typedef enum
CG_GET_ENTITY_TOKEN,
CG_R_ADDPOLYSTOSCENE,
CG_R_INPVS,
+ CG_FS_SEEK,
CG_MEMSET = 100,
CG_MEMCPY,
diff --git a/src/cgame/cg_syscalls.c b/src/cgame/cg_syscalls.c
index f5383a9d..835ea14d 100644
--- a/src/cgame/cg_syscalls.c
+++ b/src/cgame/cg_syscalls.c
@@ -104,6 +104,11 @@ void trap_FS_FCloseFile( fileHandle_t f )
syscall( CG_FS_FCLOSEFILE, f );
}
+void trap_FS_Seek( fileHandle_t f, int offset, fsOrigin_t origin )
+{
+ syscall( CG_FS_SEEK, f, offset, origin );
+}
+
void trap_SendConsoleCommand( const char *text )
{
syscall( CG_SENDCONSOLECOMMAND, text );