Fix showing a fixed graphic for invisible monsters in Scry Monster
Also fix dialogs never showing a frame around blank graphics
This commit is contained in:
@@ -720,12 +720,11 @@ void cPict::draw(){
|
||||
inWindow->setActive();
|
||||
|
||||
if(!visible) return;
|
||||
if(picNum == BLANK) { // Just fill with black
|
||||
fill_rect(*inWindow, rect, sf::Color::Black);
|
||||
return;
|
||||
}
|
||||
|
||||
(this->*drawPict()[picType])(picNum,rect);
|
||||
if(picNum == BLANK) // Just fill with black
|
||||
fill_rect(*inWindow, rect, sf::Color::Black);
|
||||
else (this->*drawPict()[picType])(picNum,rect);
|
||||
|
||||
if(drawFramed) drawFrame(2,frameStyle);
|
||||
}
|
||||
|
||||
|
@@ -121,7 +121,7 @@ void put_monst_info(cDialog& me, const cMonster& store_m, const cScenario& scen)
|
||||
|
||||
cPict& pic = dynamic_cast<cPict&>(me["pic"]);
|
||||
if(store_m.invisible)
|
||||
pic.setPict(400,PIC_MONST);// TODO: should probably be PICT_BLANK?
|
||||
pic.setPict(-1,PIC_MONST);
|
||||
else if(store_m.picture_num < 1000)
|
||||
pic.setPict(store_m.picture_num,PIC_MONST);
|
||||
else {
|
||||
|
Reference in New Issue
Block a user