aboutsummaryrefslogtreecommitdiff
path: root/Source/Aircraft.h
Commit message (Collapse)AuthorAgeFilesLines
* * LEVEL3.PLT was incorrectly using Windows CRLF end of line.XaviDCR922018-11-251-2/+2
| | | | * When assigning a parking slot, busy parking slots cannot be selected. Some work TODO yet, though.
* Aircraft are now auto-locked when entering "ShowAircraftData" menu.Xavier ASUS2018-11-241-1/+1
| | | | | Minor fixes and improvements. Path is shown when selecting a moving aircraft.
* Fixed critical bug that provoked an accidental access to a NULL pointer.Xavier ASUS2018-11-231-2/+2
|
* Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise).Xavier ASUS2018-11-231-4/+4
| | | | Improved const-correctness and scope for some variables.
* * RWY_DIR and AIRCRAFT_DIRECTION have been joint into a single enum.XaviDCR922017-12-291-2/+3
| | | | | | * Game.c: new prototypes GameGetParkingDirection() and GameGetRunwayDirection(). * Slight optimizations into GameRenderLevel(). * Added some comment headers into Gfx.c.
* * Slight optimization: all comparations against true are now compared ↵XaviDCR922017-12-261-3/+3
| | | | | | | against != false. + Added a provisional background during gameplay (still WIP). * Map editor now allows creating a map.
* * Trimmed ending whitespaces.XaviDCR922017-09-161-1/+1
| | | | * Makefile now generates output TIM files automatically, using 'cat whatever.flags' files as flags for bmp2tim.
* * Include directives are now moved to .c instead of .h, as it should really ↵XaviDCR922017-08-061-2/+0
| | | | | | | | | be... * Makefile now rebuilds needed targets on modified header files. * Some more work on GameEmergencyMode(). * Initial work on PSX mouse auto detection. * Prototypes for RCNT2 I_MASK bit handling.
* * Added font spacing parameter.XaviDCR922017-06-281-1/+1
| | | | | | * Removed obsolete, unused functions. * Performance optimization: routines inside GameCalculations() were computating a big loop several times, so this has been modified so that loop is only performed once. * Initial implementation for GameGetAircraftTilemap(). Still some work TODO.
* * Implemented aircraft collision. But it would not detect collision in some ↵XaviDCR922017-06-061-1/+1
| | | | | | | | cases. * Remove unneeded whitespace character on pointer variables (unary operators should not have any whitespaces). * SelectedAircraft index now increases or decreases automatically on aircraft added/removed. * Started writing Plt generation routines. Still a lot of work TODO.
* * Used runway is now freed if state == STATE_APPROACH.XaviDCR922017-05-311-0/+1
| | | | TODO: Free runway on state == STATE_READY_TAKEOFF or STATE_ENTERING_RWY.
* * Aircraft 0 was incorrectly being removed because indexes 0 to ↵XaviDCR922017-05-311-0/+1
| | | | | | | | | | GAME_MAX_AIRCRAFT were being read instead of 0 to ptrPlayer->ActiveAircraft. * Solved issues with linked list overflow. A detection mechanism has also been added. * New state STATE_ENTERING_RWY. * GameGuiActiveAircraftList has been moved from GameGui to Game module. * Active aircraft list for each player is now updated each time that a new flight either appears or disappears. * Other minor fixes.
* * Departure flights are not created if parking is busy.XaviDCR922017-05-301-0/+1
| | | | | | * Available TILE_PARKING and TILE_HOLDING_RWY are showed in green. * Fixed lock/unlock target logic. * Added TILE_PARKING_2.
* * Takeoff barely implemented. Stil a lot of work to do.XaviDCR922017-05-281-0/+1
| | | | | * Added new runway holding point tiles. * Bugfixes in last key single pressed.
* * Added more aircraft on LEVEL1.PLT.XaviDCR922017-05-271-0/+1
| | | | | | * Unboarding state now totally implemented. * (Bugfix): Incorrect aircraft was selected on ShowAircraftData. * Gfx1HzFlash() and Gfx2HzFlash() were incorrectly implemented, causing multiple ticks on a single cycle.
* * Aircraft state was not being transferred ciclically from Game to Aircraft ↵XaviDCR922017-05-241-3/+3
| | | | | | | | | | module. * Improved detection of target reaching for Aircraft.c. * Cursor is now displayed correctly on both 1-player and 2-player mode. * Fixed behaviour for locking/unlocking aircraft. * Fixed menus for 2-player mode. * Minor fixes and improvements.
* * Split screen is now working. Yay!!XaviDCR922017-05-051-1/+1
| | | | * New prototypes for Gfx. Still preliminar, but make split screen work.
* * Added some comments on System.XaviDCR922017-05-011-2/+3
| | | | | | | * New routine PadOneKeySinglePress() and PadTwoKeySinglePress(). * Temp waypoints now turn red when colliding with an aircraft or with a previously existing waypoint. * When loading files, GPU operation is finishedbefore calling fopen. Also, I_MASK is disabled just in case. * For PLT files, actual tile needs to be set instead of parking number.
* * Updated.XaviDCR922017-02-041-0/+0
|
* Initial commitXavier Del Campo2017-02-041-0/+28