forked from speed-dreams/speed-dreams-code
Re #924: make tCarelt->priv->dashboardActiveItem copy between threads
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6294 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: f68e60a67298f0ceace12035f6aa39b953b2516c Former-commit-id: 1f942f24691617d41137d2a76525c2179e58b660
This commit is contained in:
parent
95bff4774b
commit
8083ca97d1
1 changed files with 7 additions and 0 deletions
|
@ -821,6 +821,13 @@ tRmInfo* ReSituationUpdater::copySituation(tRmInfo*& pTarget, const tRmInfo* pSo
|
|||
//pTgtCar->_debug = pSrcCar->_debug; // Ever used anywhere ?
|
||||
pTgtCar->priv.collision_state = pSrcCar->priv.collision_state;
|
||||
//pTgtCar->_memoryPool ...; // ???? Memory pool copy ??????
|
||||
pTgtCar->_dashboardActiveItem = pSrcCar->_dashboardActiveItem;
|
||||
/* NOTE: dashboardInstant, dashboardInstantNb, dashboardRequest, dashboardRequestNb
|
||||
* are not copied, because they are initialized once and never changed again.
|
||||
* An dashboardInstant and dashboardRequest's tCarSetupItem pointers
|
||||
* are not updated, so they always point to the targets setup field.
|
||||
* This is safe until the graphics engine does not start to change car setups.
|
||||
*/
|
||||
|
||||
// 5) ctrl (raw mem copy)
|
||||
memcpy(&pTgtCar->ctrl, &pSrcCar->ctrl, sizeof(tCarCtrl));
|
||||
|
|
Loading…
Reference in a new issue