forked from speed-dreams/speed-dreams-code
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:
parent
b026d1d091
commit
6836948526
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue