Merge pull request #5 from jonathangray/amd64_fix

amd64 fix for CBlockStream/icarus
This commit is contained in:
Zachary J. Slater 2013-04-27 12:01:35 -07:00
commit e1ff5e35b1
3 changed files with 4 additions and 5 deletions

View file

@ -18,9 +18,6 @@ copy jasp and jagame*.so to your game data directory
When running windowed the mouse does not work in the menus.
Loading levels on amd64 seems to skip the cutscenes and
not properly set everything up.
Save games do not yet work on amd64.
The demo has various issues and does not work properly.

View file

@ -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();

View file

@ -7,6 +7,8 @@
#include <string.h>
#include <stdio.h>
#define IBI_HEADER_ID "IBI"
typedef float vec3_t[3];