Fixed default time of day value when not specified in <race>.xml

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2616 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 00de96e919396a0abe6015515885367f7a1a4b0d
Former-commit-id: d9eaff959028879a123d020cf1f216df8068fc09
This commit is contained in:
pouillot 2010-08-05 14:11:10 +00:00
parent b026d1d091
commit 6836948526

View file

@ -356,7 +356,8 @@ RmRaceParamMenu(void *vrp)
}
// Create and initialize Time of day combo box (2 arrow buttons and a variable label).
rmrpTimeOfDay = ((int)GfParmGetNum(rp->param, rp->title, RM_ATTR_TIME, NULL, 0) - 1);
rmrpTimeOfDay =
(int)GfParmGetNum(rp->param, rp->title, RM_ATTR_TIME, NULL, NTimeOfDayValues) - 1;
CreateButtonControl(scrHandle,menuXMLDescHdle,"timeofdayleftarrow",(void*)-1, rmChangeTime);
CreateButtonControl(scrHandle,menuXMLDescHdle,"timeofdayrightarrow",(void*)1, rmChangeTime);