mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
Fixes (by Moa)
- Hitting CTRL + V in Debug Build now writes all the data into file SGPVideoDump.txt (This can show instances of not removed objects ...) - Fixed guiMAPINV was not disposed git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6525 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -64,7 +64,10 @@
|
|||||||
HLIST ghVideoObjects = NULL;
|
HLIST ghVideoObjects = NULL;
|
||||||
BOOLEAN gfVideoObjectsInit=FALSE;
|
BOOLEAN gfVideoObjectsInit=FALSE;
|
||||||
|
|
||||||
#define USE_HASHMAP_FOR_VOBJECTS
|
#ifndef SGP_VIDEO_DEBUGGING
|
||||||
|
#define USE_HASHMAP_FOR_VOBJECTS
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_HASHMAP_FOR_VOBJECTS
|
#ifdef USE_HASHMAP_FOR_VOBJECTS
|
||||||
typedef struct VOBJECT_NODE
|
typedef struct VOBJECT_NODE
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4868,9 +4868,9 @@ UINT32 MapScreenHandle(void)
|
|||||||
|
|
||||||
if(!AddVideoObject(&VObjectDesc, &guiMAPINV))
|
if(!AddVideoObject(&VObjectDesc, &guiMAPINV))
|
||||||
{
|
{
|
||||||
FilenameForBPP("INTERFACE\\mapinv.sti", VObjectDesc.ImageFile);
|
FilenameForBPP("INTERFACE\\mapinv.sti", VObjectDesc.ImageFile);
|
||||||
|
CHECKF(AddVideoObject(&VObjectDesc, &guiMAPINV));
|
||||||
}
|
}
|
||||||
CHECKF(AddVideoObject(&VObjectDesc, &guiMAPINV));
|
|
||||||
|
|
||||||
VObjectDesc.fCreateFlags=VOBJECT_CREATE_FROMFILE;
|
VObjectDesc.fCreateFlags=VOBJECT_CREATE_FROMFILE;
|
||||||
FilenameForBPP("INTERFACE\\map_inv_2nd_gun_cover.sti", VObjectDesc.ImageFile);
|
FilenameForBPP("INTERFACE\\map_inv_2nd_gun_cover.sti", VObjectDesc.ImageFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user