Commit graph

293 commits

Author SHA1 Message Date
Silent
cabd0c999a
Scoped render states 2019-03-06 20:37:49 +01:00
Silent
5921dfddb3
Delete unused code bringing noise 2019-03-05 21:24:47 +01:00
Silent
30c10a9a25
Added more options to debug menu (rotor fix, small steam texts, minimal HUD) 2019-02-03 14:09:29 +01:00
Silent
9dbbcb42cf
Exceptions list for lightbeam BFC fix 2019-02-03 13:28:24 +01:00
Silent
90339aa980
Revisited and cleaned up lightbeam fix 2019-02-03 00:33:17 +01:00
Silent
43501aa161
Full precision D3D hidden under a define 2019-02-02 12:02:59 +01:00
Silent
80242b42f7
Marked some functions as safebuffers since realistically QueryPerformanceCounter won't ever cause a buffer overrun and it's a quite time critical function 2019-01-05 19:08:57 +01:00
Silent
7f7769ea22
Merge branch 'patch' into dev 2018-12-04 20:43:30 +01:00
Silent
f9a507b029
Partial revert "Normalized string comparision functions usage between different functions"
This reverts commit 1c41d135b5.
2018-12-04 20:40:41 +01:00
Silent
910b9372b5
Simplify GetModuleHandleEx usage 2018-10-31 23:43:07 +01:00
Silent
8f6fa047e2
Don't clean the car BEFORE Pay 'n Spray doors close, as it gets cleaned later again anyway! - SA 1.0 2018-10-14 00:01:28 +02:00
Silent
8918bc9a68
Resetting stats and variables on New Game (SA 1.0 only) 2018-09-25 23:57:50 +02:00
Silent
1a92ebb95d
Prevent "ped hit" samples from playing where they used to, so passengers don't comment on gently pushing peds 2018-09-22 23:54:25 +02:00
Silent
914d482d0d
Play passenger's voice lines when killing peds with car, not only when hitting them damages player's vehicle 2018-09-22 21:41:27 +02:00
Silent
2dfc9d30be
Unified special vehicle features and double rwheels override (it's now internally a special vehicle feature, just like rotors) 2018-09-02 23:57:29 +02:00
Silent
02f7063535
Merge branch 'master' into dev 2018-06-13 21:18:04 +02:00
Silent
1d3b0a20c1
Fix ColouredZoneName=0 ignoring text alpha 2018-06-13 20:49:40 +02:00
Silent
aeb9a76e00
Tug tow bar 2018-06-05 21:07:42 +02:00
Silent
03482f0779
Allow for several hierarchy typos (DFT-30, Sweeper, boats)
This retires BOAT_MOVING_PROP feature and Sweeper workaround
2018-06-05 20:03:40 +02:00
Silent
77f78fedca
Double artict3 trailer 2018-06-05 19:57:53 +02:00
Silent
3ec5663861
Update ModuleList.hpp 2018-06-05 01:16:51 +02:00
Silent
b791865af6
Animation for Firela ladder 2018-05-27 15:19:30 +02:00
Silent
623464d45e
Port CdStream race condition to newsteam as freezing is very frequent now 2018-05-20 22:00:39 +02:00
Silent
9d30b51273
Fix crash on newsteam 2018-05-20 22:00:13 +02:00
Silent
d9917df62b
Remaining fixes adapted to SA newsteam 2018-05-19 21:26:00 +02:00
Silent
2e02450995
Credits for III, VC and SA newsteam 2018-04-28 17:45:32 +02:00
Silent
edbe62e421
Tie credits XOR to revision version so it changes every public build
Corrected credits hook (in case somebody else hooks there already...)
2018-04-28 16:49:32 +02:00
Silent
18afa85c3f
SA newsteam fixes (partially) 2018-04-28 16:13:29 +02:00
Silent
ed397348d1
Fixed handling.cfg name matching (names don't need unique prefixes anymore)
III (all), VC (all), SA (all supported)
2018-04-24 23:59:40 +02:00
Silent
16a8b15086
Removed nasty ReadCall hacks 2018-04-22 00:18:12 +02:00
Silent
b11644ae5a
GetBuildNumber export (revision << 8 | build) 2018-04-20 20:33:45 +02:00
Silent
1c41d135b5
Normalized string comparision functions usage between different functions 2018-04-12 23:56:25 +02:00
Silent
d709936322
outfit.asi compatibility 2018-04-08 14:40:30 +02:00
Silent
bf08a40d1a
Updated MemoryMgr 2018-04-02 21:01:11 +02:00
Silent
2614f4d1b0
Decreased keyboard input latency - III, VC, SA 1.0/newsteam 2018-03-28 21:23:16 +02:00
Silent
6c6700bcef Bicycle on fire fix - SA 1.0 2018-02-17 13:59:44 +01:00
Silent
48ff3a0150 Changed 1.01 disclaimer
Removed replay fix for now
2018-02-11 14:01:10 +01:00
Silent
889daff459 Patterns for SA newsteam variables 2018-02-10 20:04:12 +01:00
Silent
1f8b44384e Fixed ammo granting from SCM - SA 1.0 2018-01-28 18:30:52 +01:00
Silent
a4bae15050 Compilation fix 2018-01-28 18:15:53 +01:00
Silent
916c82b5a4 Fun with credits 2018-01-28 14:21:27 +01:00
Silent
ae62b9f434 Fixed triangle above recruitable peds' heads (SA 1.0) 2018-01-26 18:18:52 +01:00
Silent
5ad460ff40 CPlayerInfo operator= (for SA 1.0 2018-01-26 18:18:36 +01:00
Silent
78e4e3f414 Fix Master compilation 2018-01-15 23:01:57 +01:00
Silent
e021dfe53f extra assertion 2018-01-15 01:51:36 +01:00
Silent
883b0dde94 Supply Lines/Beefy Baron SCM fix (player is placed under the building and not high in the sky) 2018-01-14 02:04:38 +01:00
Silent
62ed9242bc Supply Lines streaming fix (SA 1.0) 2018-01-11 21:45:59 +01:00
Silent
89e2a8d121 Small scope fix 2018-01-06 16:20:35 +01:00
Silent
63ba94e547 Re-added fallback code if SHGetFolderPathA fails (like in stock code, falls back to "data" directory) 2018-01-06 16:04:11 +01:00
Silent
b22bed5802 This code can be reused (and gets reused very fine) 2017-12-30 12:45:12 +01:00
Silent
88664b2279 Re-added missing lunar64 to resources 2017-12-30 12:37:30 +01:00
Silent
482686151e 6 extra directionals fix for SA newsteam 2017-12-29 00:41:22 +01:00
Silent
c136734bd2 Replaced asmy fix with normal code based fix 2017-12-26 01:59:22 +01:00
Silent
157a99f0c1 Big update to MemoryMgr - streamlined, removed code duplication, addresses now in one place 2017-12-26 00:14:39 +01:00
Silent
b454985d8b Use make_range_pattern where applicable 2017-12-25 01:57:44 +01:00
Silent
1e9d526c7c Thin templates for Memory 2017-12-23 18:25:58 +01:00
Silent
01f7c39d1e Modulo over CLoadingScreen::m_currDisplayedSplash - imfast compatible 2017-12-22 01:07:51 +01:00
Silent
69d9e4744f Misc changes 2017-12-22 00:13:28 +01:00
Silent
70efc863c8 Tidied up 2017-11-30 18:19:43 +01:00
Silent
ff823f1eb9 Exposed ColouredZoneNames to debug menu (on 1.0 only) 2017-11-15 00:20:17 +01:00
Silent
2272250483 DirectionalFromSun exposed to INI
Debug menu even in Master builds
2017-11-15 00:06:36 +01:00
Silent
fbe5c6c6bf Corrected zone name colour blending 2017-11-10 00:24:27 +01:00
Silent
4827c94a98 Use kernel32 export in ModuleList if possible
Make ModuleList a local variable
2017-10-04 19:12:33 +02:00
Silent
e8b07f9f50 Cleaned up imports
Delay load shlwapi/shell32/psapi as we don't need those in DllMain (shell32 is used MUCH later) and stock game doesn't link them so we may speed up startup
2017-10-03 23:32:14 +02:00
Silent
080cc24f34 Unnamed CdStream semaphore (allows to run III/VC/SA all at once) 2017-10-03 22:24:01 +02:00
Silent
4b2c145028 Replaced GetASIModuleHandle with ModuleList (locate modules matching only by name without extension) 2017-10-03 21:34:21 +02:00
Silent
f35b637b9e Unsupported 3.0 message 2017-09-28 23:48:08 +02:00
Silent
53debb778b Removed two pass rendering 2017-09-28 21:43:16 +02:00
Silent
ede1d92f0b NVC shader removed 2017-09-28 21:13:14 +02:00
Silent
d596ec7d1e CdStream fix future proof for new FLA 2017-09-26 18:03:13 +02:00
Silent
d6e0f3e74f Skip cdstream fix if FLA uses enhanced IMGs 2017-09-26 16:36:49 +02:00
Silent
258d1cccc9 Extra assertions added
Fixed bomb ownership/bombs saving for bikes - SA 1.0
2017-09-24 14:35:10 +02:00
Silent
a66876f85f Cargens placed in interiors tie to area 13 (visible everywhere) 2017-09-23 21:04:46 +02:00
Silent
e272cce1f3 Dancing timers fix 2017-09-23 19:34:28 +02:00
Silent
498ef74988 Fixed GetOverlappedResult return values (more future proof)
ModloaderCdStreamRaceConditionAware so SP knows when ML patches cdstream race condition
2017-09-23 13:21:10 +02:00
Silent
5c48418aae Use VP overloads explicitly for CdStreamSyncOnObject in case it's in hoodlum code space and it's not unprotected 2017-09-21 19:15:13 +02:00
Silent
4fbd372d57 Don't patch moonphases if skygfx already does that 2017-09-21 17:43:32 +02:00
Silent
ab6f2609d8 Small code clarity fixes 2017-09-20 20:41:58 +02:00
Silent
4a3a867b0c Fixed an issue with hoodlum 2017-09-20 17:11:57 +02:00
Silent
c645fc56ee Missing patch 2017-09-20 15:57:28 +02:00
Silent
a3bbfd2cd3 XP-friendly CVs 2017-09-20 15:15:29 +02:00
Silent
bda0c717a6 Moved InitializeCriticalSectionAndSpinCount before original function so critsec is here BEFORE cdstreamthread spawns 2017-09-20 15:00:21 +02:00
Silent
21d0c51519 Improved CdStream fix by using condition variable (without modloader for now only) 2017-09-20 14:58:55 +02:00
Silent
3df6ae1854 Fixed a deadlock in CdStream 2017-09-20 02:08:29 +02:00
Silent
2e85ac3dec Hooked up debugmenu.dll
Don't include an extra D3DLIGHT on vehicles since we fixed directional already
2017-09-19 21:40:48 +02:00
Silent
d3cb0bb72c Aaron's sun corrected 2017-09-19 17:46:42 +02:00
Silent
6559a04732 Modulo over CLoadingScreen::m_currDisplayedSplash - SA 1.0 2017-09-19 00:47:38 +02:00
Silent
bf8f58970d Unified code between ddraw and ASIs 2017-09-18 22:13:02 +02:00
Silent
fb672f079b Simplified ScopedUnprotect selection
Made SA use safer ScopedUnprotect
2017-09-18 12:52:35 +02:00
Silent
f1cb027642 Fixed impounding of random vehicles (because CVehicle::~CVehicle doesn't remove cars from apCarsToKeep) - SA 1.0 2017-09-15 20:24:26 +02:00
Silent
4b934419bf Proper metric-imperial conversion constants 2017-09-12 22:35:45 +02:00
Silent
4a2d93c44e Fixed new warnings 2017-09-12 18:06:55 +02:00
Silent
99503818dd Safer CdStreamSetFilePointer 2017-09-12 18:04:42 +02:00
Silent
e4a3d81e81 Only hook DOUBLE_RHWEELS exception list if there are any entries listed in INI 2017-09-12 16:14:07 +02:00
Silent
7413bab68c Less invasive INI options (don't hook if option is commented out/removed) 2017-09-12 16:08:22 +02:00
Silent
43babcd405 GetASIModuleHandle to account for stupid people having their mods as DLL and not ASI 2017-09-12 14:21:20 +02:00
Silent
f0a53778ee Remove FILE_FLAG_NO_BUFFERING from CdStreams - III (all), VC (all), SA (1.0) 2017-09-12 13:31:57 +02:00
Silent
8901d95359 Fixup for SA timers 2017-09-11 00:39:08 +02:00
Silent
539398dd68 Stuntplane ailerons
Programmatically fixed props on Predator and Tropic
2017-09-09 23:39:30 +02:00
Silent
36d9f1a29a Make freeing temp objects more aggressive to fix vending crash - SA 1.0 2017-09-09 18:47:07 +02:00
Silent
1da99647b5 Stop BF Injection/Bandito/Hotknife rotating engine components when engine is off 2017-06-25 14:09:30 +02:00
Silent
6006e253b1 SetComponentRotation moved to code 2017-06-25 12:32:22 +02:00
Silent
07776b44cb % switch Z writing later to narrow down var scope more 2017-06-23 01:25:15 +02:00
Silent
9236463f88 Animated Phoenix hood scoop 2017-06-23 00:11:17 +02:00
Silent
9eec64ab83 More merge fixes (ugh) 2017-06-20 20:32:25 +02:00
Silent
22c484a9f9 Merge fixes 2017-06-20 18:33:31 +02:00
Silent
c81ab5f3f9 + Pattern.for_each_result 2017-05-27 21:44:22 +02:00
Silent
71cfde4d8e Perform static initialization with lambdas 2017-05-14 00:23:06 +02:00
Silent
ace01292eb Read CCustomCarPlateMgr::GeneratePlateText from InjectDelayedPatches - adds compatibility with Deji's Custom Plate Format 2017-04-27 16:17:38 +02:00
Silent
396f013961 MountainCloudBoysFix using patternies instead of a hardcoded offset 2017-04-27 02:19:27 +02:00
Silent
e037250b1e can use get_pattern here 2017-04-12 21:40:46 +02:00
Silent
47323e014d reverse more RW functions 2017-04-12 21:33:23 +02:00
Silent
758186aa50 Simplified resource loading 2017-04-12 00:47:27 +02:00
Silent
6fa6ff2afe Update new dirt fix for steam 2017-04-10 13:23:39 +02:00
Silent
ca1d2c2496 Support any amount of editable materials 2017-04-10 13:02:50 +02:00
Silent
a1f4744dcf memory validator 2017-04-10 12:32:31 +02:00
Silent
87e6f81883 keep remainder while ticking SCM timers 2017-04-10 01:01:43 +02:00
Silent
6e470ab20d increased numplate and car dirt code safety (null entries properly now, don't allow for a buffer overrun in strcpy_s) 2017-04-09 23:17:31 +02:00
Silent
98055b9f3f safer resource management 2017-04-09 22:00:43 +02:00
Silent
f39c7c8d2c more security improvements 2017-04-09 20:25:19 +02:00
Silent
6bdd02ffdd Fully migrate on utf-16 strings where possible 2017-04-09 18:43:54 +02:00
Silent
f170201068 safer ini reading 2017-04-09 18:13:52 +02:00
Silent
546f7cfe54 suppress or fix all warnings 2017-04-02 19:41:50 +02:00
Silent
ba93639693 Reverse more RW functions 2017-04-02 19:00:49 +02:00
Silent
0fa6e0964b Reversed RwMatrixTranslate 2017-03-29 01:14:38 +02:00
Silent
a5c0dd54eb refactored to use templated predicates for RW callbacks 2017-03-28 00:36:05 +02:00
Silent
9304b6a060 Double rear wheels whitelist 2017-03-25 13:46:07 +01:00
Silent
82115849b1 InitializeScriptGlobals for 3.0 2017-03-20 22:57:28 +01:00
Silent
6488336842 Linear filtering on script sprites 2017-03-20 22:52:41 +01:00
Silent
9247b2c38d new timers fix (only 1.0 in SA!!) 2017-03-20 21:10:50 +01:00
Silent
52be8001d1 fix 1.0 eu crash 2017-03-18 15:15:57 +01:00
Silent
8254c1da58 Increased safety of INI path query 2017-03-18 01:43:51 +01:00
Silent
91d14c80b7 this is better 2017-03-17 10:07:25 +01:00
Silent
bf5e54c60f Quadruple stunt bonus 2017-03-17 01:24:33 +01:00
Silent
560c925235 possible hoodlum fix (virtual protect again) 2017-03-14 21:06:58 +01:00
Silent
ef233ec205 014C cargen counter fix (by spaceeinstein) 2017-03-11 18:48:04 +01:00
Silent
cf59b58353 fix GetCurrentZoneLockedOrUnlocked regression in 3.0 2017-03-11 15:43:55 +01:00
Silent
cebfa9e9f5 FuckCarCompletely not fixing panels (SA) 2017-03-10 23:54:04 +01:00
Silent
34e86d74fa CarAI timers reset in SA (all versions) 2017-03-10 16:19:05 +01:00
Silent
0778ae7cbc minor refactor in mirrors 2017-03-09 00:58:51 +01:00
Silent
cffabce8ab fix rand() misuse 2017-03-09 00:58:24 +01:00
Silent
6b8a0c093d Alt+F4 fix (SA) 2017-03-07 00:40:51 +01:00
Silent
3d730fd42c fix timers return value (hopefully never affected anything) 2017-03-06 22:44:06 +01:00
Silent
f2bfe03d10 suppress warning 2017-03-06 12:11:13 +01:00
Silent
928a641669 1000fps cap 'fix' removed 2017-03-06 11:27:44 +01:00
Silent
06a018f9aa this is better 2017-03-05 23:31:59 +01:00
Silent
868256f690 AI accuracy fix for 3.0 and newsteam 2017-03-05 23:05:02 +01:00
Silent
1d7f1f4a90 Fix newsteam regression after Memory refactor 2017-03-05 22:45:56 +01:00
Silent
6496eb4441 AI accuracy issue (SA 1.0 only so far) - III/VC are unaffected 2017-03-04 15:17:59 +01:00
Silent
80cc6f07bc reduce pollution in precompiled header 2017-03-02 21:59:06 +01:00