mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Brief: //dnl ch77
- Couple mapeditor and game fixes and radar map creation for any screen resolution. Details: - Radarmap is now possible to create from any mapeditor screen resolution. - Better fix to prevent memory corruption during gWorldItems resize. - Fix problems with losing attached item because attachment slots was not exist when using NAS, also empty slots are removed which was prevent attaching in OAS. - Fix tooltip popup for checkbox when button is disabled and prevent sticky tooltips from taskbar when SummaryWindow is active. - Check if item is valid for 1.12 will be active only for mapeditor, but game will load all items regardless of map version. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6652 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -919,7 +919,7 @@ void RenderEditorInfo( )
|
||||
{
|
||||
INT16 sGridX, sGridY;
|
||||
GetMouseXY(&sGridX, &sGridY);
|
||||
swprintf(FPSText, L"%4d %4d %6d", sGridX, sGridY, iMapIndexD);
|
||||
swprintf(FPSText, L"%4d %4d %6d ", sGridX, sGridY, iMapIndexD);
|
||||
}
|
||||
else
|
||||
swprintf(FPSText, L" ");
|
||||
@@ -1045,8 +1045,6 @@ void ProcessEditorRendering()
|
||||
RenderDoorLockInfo();
|
||||
}
|
||||
|
||||
|
||||
|
||||
if( fSaveBuffer )
|
||||
BlitBufferToBuffer( FRAME_BUFFER, guiSAVEBUFFER, 0, 2 * iScreenHeightOffset + 360, SCREEN_WIDTH, 120 );
|
||||
|
||||
@@ -1054,9 +1052,8 @@ void ProcessEditorRendering()
|
||||
//It is set to false when before we save the buffer, so the buttons don't get
|
||||
//rendered with hilites, in case the mouse is over one.
|
||||
gfRenderHilights = TRUE;
|
||||
|
||||
RenderButtonsFastHelp();
|
||||
|
||||
if(!gfSummaryWindowActive)//dnl ch77 131113
|
||||
RenderButtonsFastHelp();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1430,7 +1430,7 @@ void ToggleAttachment( GUI_BUTTON *btn, INT32 reason )
|
||||
{
|
||||
INT32 i;
|
||||
UINT16 usAttachment = 0;
|
||||
ResizeWorldItems();//dnl ch75 021113 to prevent memory corruption during resize if somehow in created item we manage to put invalid attachment (DRAGUNOV with SNIPERCOPE problem in older mapeditors)
|
||||
//ResizeWorldItems();//dnl ch75 021113 to prevent memory corruption during resize if somehow in created item we manage to put invalid attachment (DRAGUNOV with SNIPERCOPE problem in older mapeditors)
|
||||
for( i = 0; i < NUM_ATTACHMENT_BUTTONS; i++ )
|
||||
{ //Loop through and find the button that was just modified
|
||||
switch( i )
|
||||
@@ -1470,7 +1470,7 @@ void ToggleCeramicPlates( GUI_BUTTON *btn, INT32 reason )
|
||||
{
|
||||
if( reason & MSYS_CALLBACK_REASON_LBUTTON_UP )
|
||||
{
|
||||
ResizeWorldItems();//dnl ch75 021113 just precaution to prevent eventual memory corruption during resize if somehow AttachObject find invalid attachment
|
||||
//ResizeWorldItems();//dnl ch75 021113 just precaution to prevent eventual memory corruption during resize if somehow AttachObject find invalid attachment
|
||||
gfCeramicPlates ^= TRUE;
|
||||
if( gfCeramicPlates )
|
||||
{
|
||||
@@ -1492,7 +1492,7 @@ void ToggleDetonator( GUI_BUTTON *btn, INT32 reason )
|
||||
{
|
||||
if( reason & MSYS_CALLBACK_REASON_LBUTTON_UP )
|
||||
{
|
||||
ResizeWorldItems();//dnl ch75 021113 just precaution to prevent eventual memory corruption during resize if somehow AttachObject find invalid attachment
|
||||
//ResizeWorldItems();//dnl ch75 021113 just precaution to prevent eventual memory corruption during resize if somehow AttachObject find invalid attachment
|
||||
if( !gfDetonator )
|
||||
{
|
||||
gfDetonator = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user