update
This commit is contained in:
parent
ea2021cf33
commit
f0ab98cd96
@ -450,10 +450,11 @@ BOOLEAN CRYDevice::GetUnitYCIsForceArchive(int uid, int order) const
|
|||||||
int udb;
|
int udb;
|
||||||
struUnit* pUnit;
|
struUnit* pUnit;
|
||||||
struUnitYC* pYC;
|
struUnitYC* pYC;
|
||||||
if (uid < 0 || uid >= UNIT_NUM) return 0;
|
if (uid < 0 || uid >= UNIT_NUM) return FALSE;
|
||||||
pUnit = &config.units[uid];
|
pUnit = &config.units[uid];
|
||||||
if ((pUnit->state & 0x01) != TRUE) return 0;
|
if ((pUnit->state & 0x01) != TRUE) return FALSE;
|
||||||
if (order < 0 || order >= pUnit->yccount) return 0;
|
if ((pUnit->state & 0x20) == 0x20) return TRUE;
|
||||||
|
if (order < 0 || order >= pUnit->yccount) return FALSE;
|
||||||
pYC = &pUnit->ycs[order];
|
pYC = &pUnit->ycs[order];
|
||||||
udb = pYC->order;
|
udb = pYC->order;
|
||||||
if (udb < 0 || udb >= DATABASE_YC_NUM)
|
if (udb < 0 || udb >= DATABASE_YC_NUM)
|
||||||
@ -468,10 +469,11 @@ BOOLEAN CRYDevice::GetUnitYXIsForceArchive(int uid, int order) const
|
|||||||
int udb;
|
int udb;
|
||||||
struUnit* pUnit;
|
struUnit* pUnit;
|
||||||
struUnitYX* pYX;
|
struUnitYX* pYX;
|
||||||
if (uid < 0 || uid >= UNIT_NUM) return 0;
|
if (uid < 0 || uid >= UNIT_NUM) return FALSE;
|
||||||
pUnit = &config.units[uid];
|
pUnit = &config.units[uid];
|
||||||
if ((pUnit->state & 0x01) != TRUE) return 0;
|
if ((pUnit->state & 0x01) != TRUE) return FALSE;
|
||||||
if (order < 0 || order >= pUnit->yxcount) return 0;
|
if ((pUnit->state & 0x20) == 0x20) return TRUE;
|
||||||
|
if (order < 0 || order >= pUnit->yxcount) return FALSE;
|
||||||
pYX = &pUnit->yxs[order];
|
pYX = &pUnit->yxs[order];
|
||||||
udb = pYX->order;
|
udb = pYX->order;
|
||||||
if (udb < 0 || udb >= DATABASE_YX_NUM)
|
if (udb < 0 || udb >= DATABASE_YX_NUM)
|
||||||
|
Loading…
Reference in New Issue
Block a user