mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- fixed an issue saving the map in vanilla mode (by DepressivesBrot)
- fixed a minor cosmetic issue (loading wrong frame for the overhead map) (by DepressivesBrot) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5564 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+15
-5
@@ -2214,12 +2214,22 @@ BOOLEAN SaveWorld(const STR8 puiFilename, FLOAT dMajorMapVersion, UINT8 ubMinorM
|
||||
}
|
||||
}
|
||||
|
||||
for ( cnt = 0; cnt < WORLD_MAX; cnt++ )
|
||||
{
|
||||
|
||||
// Write out room information
|
||||
FileWrite( hfile, &gusWorldRoomInfo[ cnt ], sizeof( UINT16 ), &uiBytesWritten );
|
||||
|
||||
}
|
||||
if(ubMinorMapVersion < 29){
|
||||
UINT8 tmproom;
|
||||
for ( cnt = 0; cnt < WORLD_MAX; cnt++ )
|
||||
{
|
||||
tmproom = (UINT8)gusWorldRoomInfo[ cnt ];
|
||||
FileWrite( hfile, &tmproom, sizeof( UINT8 ), &uiBytesWritten );
|
||||
}
|
||||
}else{
|
||||
for ( cnt = 0; cnt < WORLD_MAX; cnt++ )
|
||||
{
|
||||
FileWrite( hfile, &gusWorldRoomInfo[ cnt ], sizeof( UINT16 ), &uiBytesWritten );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( uiFlags & MAP_WORLDITEMS_SAVED )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user