Commit Graph

1157 Commits

Author SHA1 Message Date
Ilya Shurumov
b24df3aae9 - made GetSurfaceRoadInfo for sharing road properties 2020-10-01 00:03:26 +06:00
Ilya Shurumov
50b5652529 - fix nasty crash 2020-09-30 21:42:04 +06:00
Ilya Shurumov
4488e0e6df Merge branch 'develop-SoapyMan' of https://github.com/SoapyMan/REDRIVER2 into develop-SoapyMan 2020-09-30 21:30:57 +06:00
Ilya Shurumov
c25c1cee93 - bit of refactoring AddTunnels 2020-09-30 21:12:08 +06:00
Ilya Shurumov
37b88bea38 - GetNextRoadInfo refactoring progress 2020-09-30 21:11:51 +06:00
Ilya Shurumov
0ab6c43413 - adjusting premake5.lua for future build for PSX 2020-09-30 11:09:06 +06:00
Ilya Shurumov
8936f22569 - [EMU] added RAND.H which includes stdlib for rand
- removed all non-PSX header includes
2020-09-30 11:05:35 +06:00
Ilya Shurumov
1e9655c662 Merge branch 'andre-vm-linux' into develop-SoapyMan 2020-09-30 10:56:31 +06:00
André Vicente Milack
05d47d6388 Make changes suggested in PR review
- Fix suggested settings on premake5.lua
- Fix SDL2 includes
- Fix typo on STRINGS.H include from PSY-Q
- Remove inserted _WINDOWS
- Move platform-related macro declarations to GAME/PLATFORM.H
2020-09-30 01:22:08 -03:00
Ilya Shurumov
41598b1957 - GetNextRoadInfo untangling progress 2020-09-30 01:36:23 +06:00
Ilya Shurumov
626637a9bc Merge branch 'develop-SoapyMan' of https://github.com/SoapyMan/REDRIVER2 into develop-SoapyMan 2020-09-30 00:53:16 +06:00
Ilya Shurumov
014903b543 - fix change lanes bug
- GetNextRoadInfo untangling progress
2020-09-30 00:52:05 +06:00
Ilya Shurumov
5931b63cf0 - fix CIV AI lane change indicators 2020-09-29 22:50:23 +06:00
André Vicente Milack
b24dd1bde4 Merge https://github.com/SoapyMan/REDRIVER2 into linux 2020-09-29 12:51:45 -03:00
Ilya Shurumov
f36e1a4dd8 - fix Tanner vs Car collisions
- remove some warnings
2020-09-29 20:00:01 +06:00
Ilya Shurumov
67c654cb90 - check TEXTURE.C, made C-style 2020-09-29 13:51:50 +06:00
Ilya Shurumov
6560911152 - fix SquareRoot0 table error 2020-09-28 21:18:21 +06:00
Ilya Shurumov
c797398305 - show message on screen when game is being saved
- simplify FindPrevMissionFromLadderPos
2020-09-28 17:58:19 +06:00
Ilya Shurumov
fea509cb56 - fix PingOutAllCivCarsAndCopCars refactoring-caused bug 2020-09-28 17:57:39 +06:00
Ilya Shurumov
e8056ba84f - apply cone rotation for trailblazer & gates 2020-09-28 14:58:59 +06:00
Ilya Shurumov
1943b49d29 - fix saved game loading 2020-09-28 14:58:40 +06:00
Ilya Shurumov
c5b4d87e17 - [EMU] add gte_SetGeomOffset
- completely remove ghidra macros
2020-09-27 19:51:35 +06:00
Ilya Shurumov
a63d9b27e7 - complete CreateRoadblock refactoring 2020-09-27 16:09:11 +06:00
Ilya Shurumov
8e2af39cd0 - fix roadblocks appearing under bridges 2020-09-27 15:28:21 +06:00
Ilya Shurumov
0aea3ef7e4 - more changes of controlType operations to use new car enums 2020-09-27 15:28:07 +06:00
Ilya Shurumov
8dec1bdf39 - change all controlType operations to use new car enums 2020-09-27 15:03:11 +06:00
Ilya Shurumov
26aea36f56 - added car control type and flag enums 2020-09-27 14:53:03 +06:00
André Vicente Milack
946607413f Allow the project to be compiled on Linux 2020-09-26 20:31:08 -03:00
Ilya Shurumov
7f84e34c66 - CreateRoadBlock refactoring progress 2020-09-27 02:55:16 +06:00
Ilya Shurumov
f54fc550d9 - make roadblocks by button press 2020-09-27 02:03:04 +06:00
Ilya Shurumov
4a1e1bec0f - improve cutscene skipping 2020-09-27 00:29:09 +06:00
Ilya Shurumov
df42d352f2 - allow skipping cutscenes (debug for now) 2020-09-27 00:20:22 +06:00
Ilya Shurumov
8293e74b94 - command line option to disable FMVs 2020-09-27 00:19:41 +06:00
Ilya Shurumov
d5f93d0f0f - refactor CheckChangeLanes 2020-09-26 23:01:00 +06:00
Ilya Shurumov
6ebbd1e126 - pause menu items improved 2020-09-26 22:37:50 +06:00
Ilya Shurumov
205f7966dc - remove duplicate gMissionCompletionState var
- faster version of CalcObjectRotationMatrices
2020-09-26 21:02:41 +06:00
Ilya Shurumov
423b27eff2 - fix ancient error in CivAccel (and occasonally add new one but it's now not seen lmao) 2020-09-26 20:15:33 +06:00
Ilya Shurumov
cd7d681f17 - refactor CivFindStation 2020-09-26 19:42:03 +06:00
Ilya Shurumov
a2ffce47f5 - refactor CivSteerAngle 2020-09-26 18:15:23 +06:00
Ilya Shurumov
2aa2837deb - lazy collision checks for dead cop cars instead of full 2020-09-26 18:02:14 +06:00
Ilya Shurumov
834c717070 - fix SetUpCivCollFlags refactoring error 2020-09-26 17:43:36 +06:00
Ilya Shurumov
496bf6683b - refactor SetUpCivCollFlags 2020-09-26 13:46:25 +06:00
Ilya Shurumov
1bd2a83a21 - refactor CivAccelTrafficRules & CivAccel 2020-09-26 12:02:40 +06:00
Ilya Shurumov
db907ec6cb - fix InitOverheadMap loading wrong tiles 2020-09-26 01:56:59 +06:00
Ilya Shurumov
19d3d161b3 - refactor PingInCivCar, cleanup of duplicate, reduce cycles, resolve some inlines
- civs react to chased cars
2020-09-26 01:25:07 +06:00
Ilya Shurumov
3dbf31ea31 - fix error in ROAD_IS_PARKING_ALLOWED_AT macro 2020-09-26 01:23:58 +06:00
Ilya Shurumov
e6f8ed8292 - [EMU] add branchless abs, min, max (further to be used on PSX) 2020-09-25 22:03:12 +06:00
Ilya Shurumov
e4414766de - fix refactoring bug in bFindCollisionTime 2020-09-25 22:02:32 +06:00
Ilya Shurumov
5e484ac414 - [EMU] tune reverb settings 2020-09-25 19:50:15 +06:00
Ilya Shurumov
63618c6715 - fix flag bug in SetReverbInGameState 2020-09-25 19:44:02 +06:00
Ilya Shurumov
b059c97d44 - [EMU] [SPU-AL] reverberation support (very basic, one effect)
- fix debug view crash in CivControl
2020-09-25 12:21:00 +06:00
Ilya Shurumov
13fb2fe940 - fix bug in CarBuildingCollision 2020-09-25 02:00:15 +06:00
Ilya Shurumov
e2a10e6680 - refactor CreateNewNode
- add macro ROAD_IS_PARKING_ALLOWED_AT and rename some other macros
2020-09-25 01:51:00 +06:00
Ilya Shurumov
3ef123a9b5 - refactor InitNodeList, CivFindPointOnPath 2020-09-24 00:58:41 +06:00
Ilya Shurumov
849812a2a7 Merge branch 'develop-SoapyMan' of https://github.com/SoapyMan/REDRIVER2 into develop-SoapyMan 2020-09-23 23:42:12 +06:00
Ilya Shurumov
a74b2ba68e - refactoring progress on CIV_AI.C 2020-09-23 23:39:04 +06:00
Ilya Shurumov
8b445492df - [EMU] fix gouraud-shaded line drawing colors 2020-09-23 15:28:31 +06:00
Ilya Shurumov
3b2621adff - CIV_AI.C refactoring progress 2020-09-23 01:23:57 +06:00
Ilya Shurumov
90b3df1c40 - little optimization for GlobalTimeStep 2020-09-23 01:05:37 +06:00
Ilya Shurumov
df3dd3cb32 - fix bug in bFindCollisionTime 2020-09-23 01:05:26 +06:00
Ilya Shurumov
d5b1681587 - FMV height and subtitle tuning 2020-09-22 23:30:56 +06:00
Ilya Shurumov
896a6d45e5 - more proper macros for dealing with roads
- fix error in CheckPlayerMiscFelonies
2020-09-22 23:30:31 +06:00
Ilya Shurumov
87b02f8cac - touch up on refactored stuff 2020-09-22 23:07:09 +06:00
Ilya Shurumov
481856c02a - fix DealWithHorn
- disable ReadAVI verbosity
2020-09-22 02:31:50 +06:00
Ilya Shurumov
7aa67b0073 - refactor FELONY.C 2020-09-22 02:31:12 +06:00
Ilya Shurumov
051e820f18 - roads helper macros 2020-09-22 02:31:02 +06:00
Ilya Shurumov
6a9eae544d - fix NotTravellingAlongCurve 2020-09-22 02:30:14 +06:00
Ilya Shurumov
0f1594b023 - fix PleaseWait message not drawing 2020-09-21 15:53:40 +06:00
Ilya Shurumov
b74a79ec37 - FMV texture clamp
- fix aspect and centering issue
2020-09-21 14:47:07 +06:00
Ilya Shurumov
3f8f119108 - fix FMV frame skipping if window being dragged 2020-09-21 14:29:04 +06:00
Ilya Shurumov
fd0de7f0a3 - FMV subtitles and recap 2020-09-21 12:46:42 +06:00
Ilya Shurumov
9f4352a3fa - fix crash if XA WAV file not found 2020-09-21 12:46:25 +06:00
Ilya Shurumov
0200289641 - disable ReadAVI exceptions 2020-09-21 02:31:06 +06:00
Ilya Shurumov
c64f283d1b - FMV sound fadeout when button pressed 2020-09-21 02:07:03 +06:00
Ilya Shurumov
c785dc7f33 - better FMV frame syncing 2020-09-21 02:01:00 +06:00
Ilya Shurumov
a6deaff1c0 - FMV player with bits of hardware acceleration 2020-09-21 01:51:46 +06:00
Ilya Shurumov
20d1a3738f - AVI (MJPEG) video player prototype for FMV 2020-09-21 00:21:36 +06:00
Ilya Shurumov
4e1af5f216 - remove unneeded files 2020-09-20 20:36:11 +06:00
Ilya Shurumov
758bb77dce - update premake5.lua 2020-09-20 19:55:46 +06:00
Ilya Shurumov
ddab3074c5 - zero flags in DrawTILES 2020-09-20 17:25:43 +06:00
Ilya Shurumov
1510d8a358 - fix XA timeout 2020-09-20 17:25:20 +06:00
Ilya Shurumov
a0aaee48b4 - PC XA unpause bug fix (rewinding after cutscene) 2020-09-20 17:02:43 +06:00
Ilya Shurumov
d445f4d4ea - disable XA looping 2020-09-20 16:28:17 +06:00
Ilya Shurumov
253111fc51 - XA playback support for PC 2020-09-20 16:26:27 +06:00
Ilya Shurumov
53296464d3 - try messing with CheckPlayerMiscFelonies
- try fix CreateCivCarWotDrivesABitThenStops
2020-09-20 15:04:52 +06:00
Ilya Shurumov
960500c345 - fix some triangles not rendered with PlotBuildingModelSubdivNxN and eliminate garbage on screen (Caine's Compound barrel caps) 2020-09-20 12:21:26 +06:00
Ilya Shurumov
e4de1f5d8e - FELONY.C refactoring progress 2020-09-20 02:10:41 +06:00
Ilya Shurumov
e1659159bd - proper drawing of ferris wheel by fixing PlotBuildingModelSubdivNxN and drawMesh 2020-09-20 01:39:32 +06:00
Ilya Shurumov
6ece6d9cbd - refactor remains of E3STUFF.C 2020-09-20 00:42:09 +06:00
Ilya Shurumov
a3174e4e41 - apply some constants for DENTING.C and COSMETIC.C 2020-09-20 00:41:47 +06:00
Ilya Shurumov
0bb91214d0 - fixed silent Jericho 2020-09-20 00:21:15 +06:00
Ilya Shurumov
fdaf56425a - bump version to 1.0
- note for ProcessSubDivisionLump
2020-09-19 16:53:32 +06:00
Ilya Shurumov
3f76c9a559 - implement RequestXA, HandleRequestedXA 2020-09-19 16:53:07 +06:00
Ilya Shurumov
aeef28f8d9 - fix PlotBuildingModelSubdivNxN sometimes not subdividing 2020-09-19 16:41:20 +06:00
Ilya Shurumov
9946c7a2de - refactored StepOneCar and fixed frictionLimit declaration 2020-09-19 13:55:36 +06:00
Ilya Shurumov
d2b01837dd - hubcaps falling off from chased cars
- implement HandlePlayerHubcaps
2020-09-19 12:26:50 +06:00
Ilya Shurumov
80d9660bb7 - change FindPointOfCollision declaration and fix crash 2020-09-19 03:06:17 +06:00
Ilya Shurumov
c6944adb3f - fix AddWheelForcesDriver1 reversing mistake 2020-09-19 02:53:53 +06:00
Ilya Shurumov
f85b1f80bd - [EMU] correct ratan2 and matrix operations 2020-09-19 02:15:08 +06:00
Ilya Shurumov
3814bf422a - refactored HANDLING.C 2020-09-19 02:14:38 +06:00
Ilya Shurumov
dc98908c83 - more refactoring progress of HANDLING.C
- add ABS.H to DR2MATH.H
2020-09-19 00:27:05 +06:00
Ilya Shurumov
f6e6f5c0bf - correction of ControlCarRevs & GetEngineRevs 2020-09-18 22:28:24 +06:00
Ilya Shurumov
53bfcd9030 - fix GetFrictionScales error 2020-09-18 22:27:55 +06:00
Ilya Shurumov
10c08e29b6 - refactoring progress on HANDLING.C 2020-09-18 22:27:33 +06:00
Ilya Shurumov
e5a38f451a - fix analogue controls bug
- fix build error
2020-09-16 21:17:06 +06:00
Ilya Shurumov
651359d3d2 Merge branch 'develop-SoapyMan' of https://github.com/SoapyMan/REDRIVER2 into develop-SoapyMan 2020-09-16 19:49:18 +06:00
Ilya Shurumov
ab3bdb7f97 - fix StepOneCar mistake
- correction in ProcessCarPad
2020-09-16 11:33:15 +06:00
Ilya Shurumov
f747668bb0 - shorten code 2020-09-13 12:39:01 +06:00
Ilya Shurumov
3bb7916f63 Merge branch 'master' of https://github.com/SoapyMan/REDRIVER2 into develop-SoapyMan 2020-09-13 12:05:22 +06:00
Ilya Shurumov
1a6fcb82dc - implement clipAgainstZ 2020-09-13 12:04:49 +06:00
Ilya
6addead096
Merge pull request #28 from SoapyMan/develop-SoapyMan
Develop soapy man
2020-09-13 11:49:38 +06:00
Ilya
f164e0dcfc
Merge pull request #25 from SoapyMan/develop-Fireboyd78
Develop fireboyd78
2020-09-13 11:48:52 +06:00
Ilya Shurumov
143f858dc1 - physics fixes 2020-09-11 20:49:50 +06:00
Ilya Shurumov
c81c342f81 - fix physics collision bugs (now close to retail) 2020-09-11 17:56:27 +06:00
Ilya Shurumov
c0d138ba87 - replace FixFloorSigned with actual divisions 2020-09-11 15:59:46 +06:00
Ilya Shurumov
90e3734d1d - fix error 2020-09-11 15:57:05 +06:00
Ilya Shurumov
e157f36eb6 - rename macro and add same macro (non-half rounding) 2020-09-11 15:30:58 +06:00
Ilya Shurumov
51f594a19d - put FixFloorSigned and FixHalfRound into proper places 2020-09-11 13:10:50 +06:00
Ilya Shurumov
0869005631 - add FixHalfRound and FixFloorSigned macros 2020-09-11 13:10:15 +06:00
Ilya Shurumov
5c0fd9b943 - improve GlobalTimeStep, RebuildCarMatrix
- fix InitCarPhysics
2020-09-11 01:11:43 +06:00
Ilya Shurumov
353e3bfb19 - improve, AddWheelForcesDriver1, ConvertTorqueToAngularAcceleration, 2020-09-11 01:10:51 +06:00
Ilya Shurumov
840ac1d438 - fix StepOneCar (cars less vertically jitter) 2020-09-11 00:28:55 +06:00
Ilya Shurumov
921b2b0543 - fix bug in TannerActionHappening 2020-09-10 23:53:30 +06:00
Ilya Shurumov
8ea5a5d74a - move header inclusion to avoid many UNIMPLEMENTED messages 2020-09-10 22:07:29 +06:00
Ilya Shurumov
f11c09671c - fix crash in StepOneCar 2020-09-10 22:06:55 +06:00
Ilya Shurumov
f11d103b7c - fix doors on all levels 2020-09-10 22:06:22 +06:00
Ilya Shurumov
931e7051eb - fix sdGetCell height bug after refactoring 2020-09-10 21:47:58 +06:00
Ilya Shurumov
305b8fd30d - fix bug in sdGetCell 2020-09-10 20:47:01 +06:00
Ilya Shurumov
3518c36fc2 - fix bug in DoMissionSound 2020-09-10 20:45:15 +06:00
Ilya Shurumov
e9a048e8cf - implement CutSceneSelectScreen 2020-09-10 20:16:41 +06:00
Ilya Shurumov
4f38e86255 - implement DrawExplosion 2020-09-10 19:44:15 +06:00
Ilya Shurumov
ee403900b9 - implement whole XAPLAY.C 2020-09-09 23:17:05 +06:00
Ilya Shurumov
922329891d - improve and fix refactoring error in RoadInCell 2020-09-09 00:47:32 +06:00
Ilya Shurumov
c553893a21 - refactor DR2ROADS.c 2020-09-09 00:44:52 +06:00
Ilya Shurumov
08b4dc2025 - re-refactor CalculatePedestrianInterest 2020-09-08 19:43:00 +06:00
Ilya Shurumov
8aed8bf447 - refactor DENTING.C 2020-09-08 00:36:26 +06:00
Ilya Shurumov
794ef90a7c - refactor CUTSCENE.C 2020-09-08 00:10:08 +06:00
Ilya Shurumov
9aef4c96c9 Merge branch 'master' of https://github.com/SoapyMan/REDRIVER2 2020-09-07 23:04:36 +06:00
Ilya Shurumov
8081755288 - [EMU] join Z and W vertex components 2020-09-07 23:03:38 +06:00
Ilya Shurumov
90fad36ec5 - fix car selection in CarSelectScreen
- remove accidentally added VCPROJ file
2020-09-06 00:42:49 +06:00
Ilya Shurumov
9abdbee589 - fix cop car unlocking
- gFurthestMission set to 0
2020-09-06 00:26:15 +06:00
Ilya Shurumov
cdd7dbdf29 - fix CityCutOffScreen reversing bug 2020-09-06 00:24:47 +06:00
Ilya Shurumov
1eee991e9c - remove DEBUG_OPTIONS from release build
- fix premake5.lua
2020-09-06 00:20:21 +06:00
Ilya Shurumov
a5c54866dc - update premake5.lua 2020-09-06 00:12:41 +06:00
Ilya Shurumov
3df233179d - breakdown of THISDUST.H on DR2LIMITS, DR2MATH, DR2TYPES, VERSION headers 2020-09-06 00:12:14 +06:00
Ilya Shurumov
2acc2608f8 - refactor COSMETIC.C
- fixed back lights brightness bug
- introduce DRLIMITS.H
2020-09-05 23:48:15 +06:00
Fireboyd78
9e959d4207 Mistake. 2020-09-05 08:50:53 -07:00
Fireboyd78
2dfc30229c Added missing code for "Jericho Mode" cheat code. 2020-09-05 08:49:44 -07:00
Ilya Shurumov
2863361fe1 - refactor CONVERT.C 2020-09-05 20:29:47 +06:00
Ilya Shurumov
15ed172fd6 - refactor CELL.C
- moved GetNextPackedCop, UnpackCellObject from DRAW.C to CELL.C
2020-09-05 20:27:33 +06:00