mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Fixes (by The_Bob):
- Fixed random freeze on win8/10 - Fixed crash on mercs entering sector - Fixed crash when using cover display (del/end) - Fixed attachment popup showing incompatible attachments (crash/freeze/confusion on clicking the option) - Fixed attachment popup positioning - Fixed LBE contents corruption/deletion - Fixed access violation (out of array bounds) in interrupt code - Fixed a bunch of random old stuff - Got the project to build on VS2015 - Improved popup class handling of grayed out options - Improved performance of get item assignment check (added by Flugente) - Added Ctrl+Space bind for testing/fixing broken LBE contents git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8399 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -211,7 +211,7 @@ BOOLEAN POPUP_OPTION::runHoverCallback(MOUSE_REGION * pRegion)
|
||||
|
||||
BOOLEAN POPUP_OPTION::run()
|
||||
{
|
||||
// check if it's aaliable at this time
|
||||
// check if it's available at this time
|
||||
if ( this->action != 0 && this->checkAvailability() )
|
||||
{
|
||||
this->action->call();
|
||||
@@ -1559,10 +1559,13 @@ void POPUP::HandleShadingOfLines( void )
|
||||
// shade strings past the this->subPopupOptionCount offset
|
||||
for(std::vector<POPUP_OPTION*>::iterator cOption=this->options.begin(); cOption != this->options.end(); ++cOption)
|
||||
{
|
||||
if ( (*cOption)->checkAvailability() )
|
||||
UnShadeStringInBox( this->boxId, i+this->subPopupOptionCount);
|
||||
else
|
||||
ShadeStringInBox( this->boxId, i+this->subPopupOptionCount);
|
||||
if ((*cOption)->checkAvailability()) {
|
||||
UnShadeStringInBox(this->boxId, i + this->subPopupOptionCount);
|
||||
}
|
||||
else {
|
||||
SetStringShade((*cOption)->stringHandle, (*cOption)->color_shade); // handle checkAvailability() changing string shade color
|
||||
ShadeStringInBox(this->boxId, i + this->subPopupOptionCount);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user