K1999: merged sdl-port -c 343 (Fixed init function not initializing correctly the module info array)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@451 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 4ab5677743d73f5a56fbe43a6e0ce9f9a43b2d7a Former-commit-id: 898516a5e521e6d37acba3119dc30612f9f8e0ed
This commit is contained in:
parent
778637c72a
commit
7b63f5fc88
1 changed files with 4 additions and 3 deletions
|
@ -109,10 +109,10 @@ class CK1999Data
|
|||
void Drive(tCarElt* car, tSituation *s);
|
||||
};
|
||||
|
||||
CK1999Data data1(0.0032, 9.50, 8.00, 8.00, 0.40, "K1999-buggy");
|
||||
CK1999Data data2(0.0032, 12.00, 11.00, 2.00, 0.20, "K1999-cg-nascar-rwd");
|
||||
static CK1999Data data1(0.0032, 9.50, 8.00, 8.00, 0.40, "K1999-buggy");
|
||||
static CK1999Data data2(0.0032, 12.00, 11.00, 2.00, 0.20, "K1999-cg-nascar-rwd");
|
||||
|
||||
CK1999Data *tpdata[] = {&data1, &data2};
|
||||
static CK1999Data *tpdata[] = {&data1, &data2};
|
||||
|
||||
#define CARS (sizeof(tpdata)/sizeof(*tpdata))
|
||||
|
||||
|
@ -481,6 +481,7 @@ static int InitFuncPt(int index, void *pt);
|
|||
extern "C" int K1999(tModInfo *modInfo)
|
||||
{
|
||||
OUTPUT("modInfo");
|
||||
memset(modInfo, 0, 10*sizeof(tModInfo));
|
||||
for (int i = CARS; --i >= 0;)
|
||||
{
|
||||
OUTPUT("modInfo[" << i << "].name = " << tpdata[i]->pszCarName);
|
||||
|
|
Loading…
Reference in a new issue