diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2018-02-03 16:05:37 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2018-02-03 16:05:37 +0100 |
| commit | 6364d64cbca986c61b3bea76167610198fbe99bb (patch) | |
| tree | 445e96738e5712e4518bc6b63f7d82f347c3a3ef /Source | |
| parent | 7d14b5036066d9391d52ab73ca4b26c03e3cb6c2 (diff) | |
| download | airport-6364d64cbca986c61b3bea76167610198fbe99bb.tar.gz | |
* Aircraft.c: files were being loaded each time level was selected.
* Game.c: score bonus is now added depending on flight remaining time.
+ Added second level.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Aircraft.c | 11 | ||||
| -rw-r--r-- | Source/Exe/AIRPORT.elf | bin | 330500 -> 330656 bytes | |||
| -rw-r--r-- | Source/Exe/AIRPORT.iso | bin | 1480704 -> 1480704 bytes | |||
| -rw-r--r-- | Source/Game.c | 3 | ||||
| -rw-r--r-- | Source/Makefile | 2 |
5 files changed, 13 insertions, 3 deletions
diff --git a/Source/Aircraft.c b/Source/Aircraft.c index 8af8ad8..54db446 100644 --- a/Source/Aircraft.c +++ b/Source/Aircraft.c @@ -87,6 +87,8 @@ static bool AircraftCheckPath(TYPE_AIRCRAFT_DATA* ptrAicraft, TYPE_AIRCRAFT_DATA void AircraftInit(void)
{
+ static bool firstLoad = true;
+
bzero(AircraftData, GAME_MAX_AIRCRAFT * sizeof(TYPE_AIRCRAFT_DATA));
AircraftIndex = 0;
@@ -113,10 +115,15 @@ void AircraftInit(void) AIRCRAFT_INVALID_IDX,
sizeof(AircraftFlightDataIdx_HashTable) );
- LoadMenu( GameFileList,
+ if (firstLoad != false)
+ {
+ firstLoad = false;
+ + LoadMenu( GameFileList,
GameFileDest,
sizeof(GameFileList) / sizeof(GameFileList[0]),
- sizeof(GameFileDest) / sizeof(GameFileDest[0]) );
+ sizeof(GameFileDest) / sizeof(GameFileDest[0]) ); + }
}
bool AircraftAddNew( TYPE_FLIGHT_DATA* ptrFlightData,
diff --git a/Source/Exe/AIRPORT.elf b/Source/Exe/AIRPORT.elf Binary files differindex 33a2f5e..074d649 100644 --- a/Source/Exe/AIRPORT.elf +++ b/Source/Exe/AIRPORT.elf diff --git a/Source/Exe/AIRPORT.iso b/Source/Exe/AIRPORT.iso Binary files differindex 34ceefa..77a91f2 100644 --- a/Source/Exe/AIRPORT.iso +++ b/Source/Exe/AIRPORT.iso diff --git a/Source/Game.c b/Source/Game.c index 2670dc0..f3fd11a 100644 --- a/Source/Game.c +++ b/Source/Game.c @@ -3968,6 +3968,9 @@ void GameRemoveFlight(uint8_t idx, bool successful) if (successful != false) { GameScore += SCORE_REWARD_FINISH_FLIGHT; + + // Add punctuation + GameScore += FlightData.RemainingTime[idx] << 1; } else { diff --git a/Source/Makefile b/Source/Makefile index 7de5746..e47a3da 100644 --- a/Source/Makefile +++ b/Source/Makefile @@ -27,7 +27,7 @@ CDROM_ROOT=$(PROJECT_DIR)/cdimg BIN_TARGET_PATH = $(PROJECT_DIR)/Bin #Uncomment this DEFINE below to use Airport together with OpenSend + QPSXSerial toolchain. -#DEFINE += -DSERIAL_INTERFACE +DEFINE += -DSERIAL_INTERFACE # PSXSDK tools definitions # ELF2EXE: |
