mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Fix player coloring
This commit is contained in:
		| @@ -17,6 +17,7 @@ | |||||||
| #include "../widgets/Images.h" | #include "../widgets/Images.h" | ||||||
| #include "CMessage.h" | #include "CMessage.h" | ||||||
| #include "render/Canvas.h" | #include "render/Canvas.h" | ||||||
|  | #include "CPlayerInterface.h" | ||||||
|  |  | ||||||
| CHeroBackpackWindow::CHeroBackpackWindow(const CGHeroInstance * hero) | CHeroBackpackWindow::CHeroBackpackWindow(const CGHeroInstance * hero) | ||||||
| 	: CWindowObject((EOptions)0) | 	: CWindowObject((EOptions)0) | ||||||
| @@ -41,5 +42,5 @@ CHeroBackpackWindow::CHeroBackpackWindow(const CGHeroInstance * hero) | |||||||
| void CHeroBackpackWindow::showAll(Canvas &to) | void CHeroBackpackWindow::showAll(Canvas &to) | ||||||
| { | { | ||||||
| 	CIntObject::showAll(to); | 	CIntObject::showAll(to); | ||||||
| 	CMessage::drawBorder(PlayerColor(1), to.getInternalSurface(), pos.w+28, pos.h+29, pos.x-14, pos.y-15); | 	CMessage::drawBorder(PlayerColor(LOCPLINT->playerID), to.getInternalSurface(), pos.w+28, pos.h+29, pos.x-14, pos.y-15); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user