aboutsummaryrefslogtreecommitdiff
path: root/Source/MemCard.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-06-04 14:00:56 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-06-04 14:00:56 +0200
commitc43347edb7d422b902360a44a7bd0b0a20f941f2 (patch)
treeb035366227e938bbeded6c807235ea3f45d6ea9b /Source/MemCard.c
parent219d958538aecfec4dace7f3b31dcfa193667b27 (diff)
downloadairport-c43347edb7d422b902360a44a7bd0b0a20f941f2.tar.gz
* Bugfix: index for selectedAircraft is recalculated when a new aircraft is spawned.
* Initial implementation for minimum spawn time in parkings. * GfxIsGPUBusy() check added for MemCard.
Diffstat (limited to 'Source/MemCard.c')
-rw-r--r--Source/MemCard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/MemCard.c b/Source/MemCard.c
index 5050957..f55facf 100644
--- a/Source/MemCard.c
+++ b/Source/MemCard.c
@@ -708,6 +708,8 @@ bool MemCardReadSector(TYPE_BLOCK_DATA * ptrBlockData, int sector)
" 0 and 511 are allowed!\n", sector);
return false;
}
+
+ while(GfxIsGPUBusy() == true);
result = McReadSector(ptrBlockData->Slot, sector, DataBuffer);