forked from Mirrors/openclonk
Goal controller: Slight optimization
No need to call the function twice. This is trivial though, the call is not expensive usually.directional-lights
parent
c05ee7e644
commit
be207737bc
|
@ -114,11 +114,10 @@ public func OnGoalUpdate(object goal)
|
|||
|
||||
return _inherited(goal, ...);
|
||||
}
|
||||
var goal_picture_def;
|
||||
var update_req = goal_gui_menu.Symbol != goal->GetID();
|
||||
if (goal->~GetPictureDefinition())
|
||||
var goal_picture_def = goal->~GetPictureDefinition();
|
||||
if (goal_picture_def)
|
||||
{
|
||||
goal_picture_def = goal->GetPictureDefinition();
|
||||
update_req = goal_gui_menu.Symbol != goal_picture_def;
|
||||
}
|
||||
var goal_picture = goal->~GetPictureName() ?? goal->GetGraphics();
|
||||
|
|
Loading…
Reference in New Issue