From: <geo...@us...> - 2013-05-18 22:35:02
|
Revision: 6043 http://freeorion.svn.sourceforge.net/freeorion/revision/?rev=6043&view=rev Author: geoffthemedio Date: 2013-05-18 22:34:56 +0000 (Sat, 18 May 2013) Log Message: ----------- Planet icons on objects list. Modified Paths: -------------- trunk/FreeOrion/UI/ObjectListWnd.cpp Modified: trunk/FreeOrion/UI/ObjectListWnd.cpp =================================================================== --- trunk/FreeOrion/UI/ObjectListWnd.cpp 2013-05-18 22:14:48 UTC (rev 6042) +++ trunk/FreeOrion/UI/ObjectListWnd.cpp 2013-05-18 22:34:56 UTC (rev 6043) @@ -876,8 +876,8 @@ retval.push_back(halo_texture); } } else if (obj->ObjectType() == OBJ_PLANET) { - //const Planet* planet = */universe_object_cast<const Planet*>(obj));; - // don't have any icons for each planet type, so use generic / default object icon + if (const Planet* planet = universe_object_cast<const Planet*>(obj)) + retval.push_back(ClientUI::PlanetIcon(planet->Type())); } else if (obj->ObjectType() == OBJ_BUILDING) { const Building* building = universe_object_cast<const Building*>(obj); |