mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
1. PItems are now variable, from 3-20 and can be set in JA2Options.ini via NUM_P_ITEMS
2. USE_XML_TILESETS moved from JA2.ini to JA2Options.ini 3. New Feature - Ctrl+Click on an item with an item in hand to auto-attach/merge them. Attach works with stacks. Merge only works on single items, for now at least. 4. New Feature - To accompany Quiet Training, there are now Quiet Repairing and Quiet Doctoring options. 5. Bugfix - inseparable attachments of attachments were getting lost again when using ctrl+f/the map screen button to remove attachments 6. Bugfix - INT8 overflow error causing vehicle repair to actually lower its status 7. GasMask tag in items.xml can now be applied to helmets as well as face items. 8. Bugfix - AI code was referencing hard coded GASMASK item number instead of looking for the tag 9. Bugfix - "break;" was removed in Explosion Control.cpp, thereby causing mustard gas to deal out fire damage. (Not sure if this was deliberate? But the new implementation differs from the JA2 standard, so it should be added to JA2Options.ini at least) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5320 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include <vfs/Core/vfs_file_raii.h>
|
||||
#include "XML_TileSet.hpp"
|
||||
#include "XMLWriter.h"
|
||||
#include "GameSettings.h"
|
||||
|
||||
void ExportTilesets(vfs::Path const& filename);
|
||||
|
||||
@@ -34,10 +35,10 @@ UINT8 gubNumSets = MAX_TILESETS;
|
||||
|
||||
TILESET gTilesets[ MAX_TILESETS ];
|
||||
|
||||
extern bool g_bUseXML_Tilesets;
|
||||
//extern bool g_bUseXML_Tilesets;
|
||||
void InitEngineTilesets( )
|
||||
{
|
||||
if(g_bUseXML_Tilesets)
|
||||
if(gGameExternalOptions.fUseXmlTileSets)
|
||||
{
|
||||
const vfs::Path tileset_filename(L"Ja2Set.dat.xml");
|
||||
if(!getVFS()->fileExists(tileset_filename))
|
||||
@@ -84,7 +85,7 @@ void InitEngineTilesets( )
|
||||
FileRead( hfile, &uiNumFiles, sizeof( uiNumFiles ), &uiNumBytesRead );
|
||||
|
||||
// COMPARE
|
||||
if ( uiNumFiles != NUMBEROFTILETYPES )
|
||||
if ( uiNumFiles != giNumberOfTileTypes )
|
||||
{
|
||||
// Report error
|
||||
SET_ERROR( "Number of tilesets slots in code does not match data file" );
|
||||
@@ -174,7 +175,7 @@ void ExportTilesets(vfs::Path const& filename)
|
||||
FileRead( hfile, &numFiles, sizeof( numFiles ), &uiNumBytesRead );
|
||||
|
||||
// COMPARE
|
||||
SGP_THROW_IFFALSE( numFiles == NUMBEROFTILETYPES,
|
||||
SGP_THROW_IFFALSE( numFiles == giNumberOfTileTypes,
|
||||
L"Number of tilesets slots in code does not match data file" );
|
||||
|
||||
xmlw.addAttributeToNextValue("numFiles",(int)numFiles);
|
||||
|
||||
Reference in New Issue
Block a user