ZoneCode: Change WeaponDef asset to have normal members instead of arrays for graph knots since the ordering of loading needs the array entries separated and the current code generation doesn't allow for that

This commit is contained in:
Jan 2019-12-03 23:54:02 +01:00
parent c05f04e28a
commit 96ceb76e46

View File

@ -4279,9 +4279,17 @@ struct WeaponDef
float fAntiQuickScopeSwayFactor; float fAntiQuickScopeSwayFactor;
float fightDist; float fightDist;
float maxDist; float maxDist;
const char *accuracyGraphName[2]; //const char *accuracyGraphName[2]; // TODO: Order is accuracyGraphName[0] -> accuracyGraphKnots[0] -> originalAccuracyGraphKnots[0] -> accuracyGraphName[1] -> ...
vec2_t *accuracyGraphKnots[2]; // Which is currently not possible to do in code generation. Afaik this is the only place where this is the case.
vec2_t *originalAccuracyGraphKnots[2]; // So might be something to fix but on the other hand it might be too much work for this little inconvenience.
const char *accuracyGraphName0;
const char *accuracyGraphName1;
//vec2_t *accuracyGraphKnots[2];
vec2_t* accuracyGraphKnots0;
vec2_t* accuracyGraphKnots1;
//vec2_t *originalAccuracyGraphKnots[2];
vec2_t* originalAccuracyGraphKnots0;
vec2_t* originalAccuracyGraphKnots1;
int accuracyGraphKnotCount[2]; int accuracyGraphKnotCount[2];
int originalAccuracyGraphKnotCount[2]; int originalAccuracyGraphKnotCount[2];
int iPositionReloadTransTime; int iPositionReloadTransTime;