mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- Fixing mapeditor move building and improving some related mapeditor stuff. Details: - Change the way exit grids are add, remove, save and load through editor, also add undo option for exit grids and you can place unlimited number of them. - Fix incorrect gridno save in temporary map file for bigmap exit grids. - Increase maximum number of light sprite from 256 to 4096 per map. - Using DEL key for QuickEraseMapTile will now erase ItemPool too, and with improved function DeleteStuffFromMapTile will erase light sprites, exit grids and door locks. - Cliff hang tiles used for middle cliffs are now possible to erase with when erase button is on. - Add support for undo door locks, also you can now erase them if erase button is on. - Move building function is completely rewrite and will properly move exit grids, door locks, lights and items too. - Removing unnecessary tiles during copy building is improved too. - Fix undo function for light sprites which now will also store all three types and undo them properly. - Fix CTD situation if tile elements are deleted and after that items too, then undo will crash mapeditor. - Fix spawning of item pool cursors during when adding items. - Fix text glitches over door locks form. - Fix sticky tooltip when loadsave screen or door locks form is active. - High ground marking cursors will not be drawn in invisible map tiles anymore to increase speed and maybe fix some render problems but I doubt it. - Move GLOCK_17_ForUseWithLOS item generation from init.cpp to los.cpp to avoid potential problems if global world items array not set. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7004 3b4a5df2-a311-0410-b5c6-a8a6f20db521
31 lines
850 B
C
31 lines
850 B
C
#include "BuildDefines.h"
|
|
|
|
#ifdef JA2EDITOR
|
|
#ifndef __EDITOR_UNDO_H
|
|
#define __EDITOR_UNDO_H
|
|
|
|
BOOLEAN AddToUndoList( INT32 iMapIndex );
|
|
void AddLightToUndoList( INT32 iMapIndex, INT32 iLightRadius, UINT8 ubLightID );
|
|
|
|
BOOLEAN RemoveAllFromUndoList();
|
|
BOOLEAN ExecuteUndoList();
|
|
|
|
void EnableUndo();
|
|
void DisableUndo();
|
|
|
|
void DetermineUndoState();
|
|
|
|
// Undo command flags
|
|
#define MAX_UNDO_COMMAND_LENGTH 10
|
|
|
|
//dnl ch86 220214
|
|
BOOLEAN CheckMapIndexInUndoList(INT32 iMapIndex);
|
|
void UpdateItemPoolInUndoList(INT32 iMapIndex, ITEM_POOL *pItemPoolOld, ITEM_POOL *pItemPoolNew);
|
|
void UpdateItemPoolMoveInUndoList(INT32 iMapIndex, INT32 iNewMapIndex);
|
|
void AddItemPoolGraphic(ITEM_POOL *pItemPoolHead);
|
|
void UndoItemPoolGraphicInUndoList(void);
|
|
void MergeItemPoolInUndoList(INT32 iMapIndex, ITEM_POOL *pItemPool);
|
|
|
|
#endif
|
|
#endif
|