mirror of
https://github.com/ioquake/jedi-academy.git
synced 2024-11-10 07:11:44 +00:00
fix CBlockStream/icarus on amd64
This commit is contained in:
parent
f50e96fe20
commit
721432a911
2 changed files with 4 additions and 2 deletions
|
@ -425,7 +425,7 @@ int CBlockStream::Create( char *filename )
|
|||
return false;
|
||||
}
|
||||
|
||||
fwrite( s_IBI_HEADER_ID, 1, sizeof(s_IBI_HEADER_ID), m_fileHandle );
|
||||
fwrite( s_IBI_HEADER_ID, 1, sizeof(IBI_HEADER_ID), m_fileHandle );
|
||||
fwrite( &s_IBI_VERSION, 1, sizeof(s_IBI_VERSION), m_fileHandle );
|
||||
|
||||
return true;
|
||||
|
@ -551,7 +551,7 @@ Open
|
|||
|
||||
int CBlockStream::Open( char *buffer, long size )
|
||||
{
|
||||
char id_header[sizeof(s_IBI_HEADER_ID)];
|
||||
char id_header[sizeof(IBI_HEADER_ID)];
|
||||
float version;
|
||||
|
||||
Init();
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define IBI_HEADER_ID "IBI"
|
||||
|
||||
typedef float vec3_t[3];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue