Alexander Batalov
6ab08bd22b
Remove some unused db functions
2023-01-05 10:39:46 +03:00
Alexander Batalov
060c79fc20
Remove electronic registration
2023-01-05 10:27:16 +03:00
Alexander Batalov
ac64fde502
Fix object rendering
...
Previous solution did not work well on high resolutions due to
incorrect tile calculations - was not updating edges and sometimes
hanged in endless loop trying to find upper-left or bottom-right
tiles.
New solution follows Sfall's HRP implementation.
2023-01-05 05:59:45 +03:00
Alexander Batalov
7496afa4f8
Clarify textObjectAdd param
2023-01-05 04:06:18 +03:00
Alexander Batalov
66955f893a
Review light.cc
2023-01-03 23:56:52 +03:00
Alexander Batalov
9ee4cb4a26
Refactor min/max usage
2023-01-03 23:00:38 +03:00
Alexander Batalov
a5cefd6c8b
Clear dirty rect during map updates
...
Previous solution to replace squares was destructive in nature and
could possibly lead to unexpected things (especially with mods where
tile 0x293 might not be opaque black).
New solution follows mapper refresh routines where entire dirty rect
is reset to black as a preparation step.
2023-01-03 21:10:20 +03:00
Alexander Batalov
d040ea814a
Fix objects being animated while playing movies
2023-01-02 21:15:43 +03:00
Alexander Batalov
03145e4fcd
Fix endgame slideshow issues
...
See #3
Closes #215
2023-01-02 14:34:42 +03:00
Alexander Batalov
812079004c
Make credits fullscreen
...
See #3 , #215
2023-01-02 13:09:03 +03:00
Alexander Batalov
6224af6178
Fix help screen issues
...
Closes #179
2023-01-02 11:13:32 +03:00
Alexander Batalov
a8d3cdd148
Improve worldmap.cc readability
2022-12-31 14:12:04 +03:00
Alexander Batalov
95cc863fde
Fix special encounter icon blinking
2022-12-30 16:45:49 +03:00
Alexander Batalov
cc1562b056
Add fading effects when moving to/from worldmap
...
Follow-up to #193
2022-12-30 00:41:29 +03:00
Alexander Batalov
07f3c82444
Fix map loading background
...
Integrated interface bar area remained visible during map loading.
2022-12-29 23:33:09 +03:00
Alexander Batalov
9976728e04
Fix worldmap background
...
Closes #193
2022-12-29 21:54:40 +03:00
Alexander Batalov
5922d15b1c
Fix various dialog box issues
...
- Better vertical positioning (account for word wrapping)
- Better horizontal positioning (consider both right and left gaps for
calculating available width).
- Prevent vertical text overflow.
2022-12-29 13:02:59 +03:00
Alexander Batalov
248d6dfb92
Add shadow to city labels
2022-12-29 10:43:02 +03:00
Alexander Batalov
73cc93a3e4
Cleanup some interface bar functions
2022-12-29 10:21:15 +03:00
Alexander Batalov
34259269a4
Improve "Whomever is attacking me" targeting
...
Fixes #197
2022-12-29 09:37:51 +03:00
Alexander Batalov
11217974c6
Improve aiFindAttackers
2022-12-28 19:45:17 +03:00
Alexander Batalov
0e13989f9c
Fix critter lists sorting functions
2022-12-28 17:54:09 +03:00
Alexander Batalov
57dcf42b5c
Fix custom disposition button
2022-12-28 17:33:01 +03:00
Alexander Batalov
c2c26db5d9
Fix max throw range calculation
2022-12-28 12:33:10 +03:00
Alexander Batalov
b6ee5fcbe9
Fix configGetIntList
2022-12-28 09:14:30 +03:00
Alexander Batalov
0e11569397
Add ai_check_drugs fixes and improvements ( #29 )
2022-12-28 02:19:43 +03:00
Alexander Batalov
4b137dac5f
Improve graphlib accuracy
2022-12-27 18:59:24 +03:00
Alexander Batalov
1f6d5ebbc9
Improve some color functions readability
2022-12-27 16:27:14 +03:00
Alexander Batalov
462baa0a04
Improve color tables accuracy
2022-12-27 15:51:43 +03:00
Alexander Batalov
b74f3c368b
Fix warning
2022-12-26 12:03:14 +03:00
Alexander Batalov
a05ab09e1b
Cleanup audio IO
2022-12-26 11:48:47 +03:00
Alexander Batalov
1b0cd6d757
Improve SoundDecoder readability
2022-12-25 22:30:31 +03:00
Alexander Batalov
b8dea116ee
Improve Sound readability
2022-12-25 21:56:23 +03:00
Alexander Batalov
e11f1af9ae
Improve combat_ai.cc readability
2022-12-24 14:30:03 +03:00
Alexander Batalov
9c34b26fec
Improve animation.cc readability
2022-12-23 15:49:56 +03:00
Alexander Batalov
9a6d45541f
Rename animationRegisterPing
2022-12-23 15:22:53 +03:00
Alexander Batalov
f4775775b8
Review dude move/run functions
2022-12-23 15:13:05 +03:00
Alexander Batalov
a48d744cde
Improve actions.cc readability
2022-12-23 12:44:52 +03:00
Alexander Batalov
b0cb70ffa6
Fix file existence check
2022-12-23 10:34:20 +03:00
Alexander Batalov
512530c653
Fix building file list on non-Windows platforms
2022-12-23 10:33:16 +03:00
Alexander Batalov
982d4cc0f9
Truncate long names in file picker dialog
2022-12-23 10:30:31 +03:00
Alexander Batalov
3b951b8578
Add opSetWeaponAmmoPid
2022-12-22 20:36:31 +03:00
Alexander Batalov
17a4ee8a68
Add Sfall version opcodes ( #200 )
2022-12-22 20:18:07 +03:00
Alexander Batalov
c85cda4b48
Fix rare crash when using grenades
...
Closes #208
2022-12-22 19:54:04 +03:00
Alexander Batalov
c7ca358295
Rename OBJECT_NO_SAVE flag
2022-12-22 16:49:17 +03:00
Alexander Batalov
96296417c6
Rename OBJECT_NO_REMOVE flag
2022-12-22 16:47:11 +03:00
Alexander Batalov
737076a126
Fix getting elevation of freed object
2022-12-22 14:20:37 +03:00
Alexander Batalov
c0908cf14f
Fix visual artifacts caused by null tiles
2022-12-21 09:18:29 +03:00
Alexander Batalov
343911f736
Fix floor lighting
2022-12-20 18:44:21 +03:00
Alexander Batalov
281c1aa82a
Review tileRenderFloorsInRect
2022-12-20 16:22:56 +03:00
Alexander Batalov
18afce71b0
Review tile_fill_roof
2022-12-20 15:10:42 +03:00
Alexander Batalov
9599d63f45
Review roof_fill_off
2022-12-20 15:09:01 +03:00
Alexander Batalov
ce351988b5
Review roof_fill_on
2022-12-20 15:01:57 +03:00
Alexander Batalov
feb3821565
Fix multiple knockout effects
2022-12-13 23:59:45 +03:00
Alexander Batalov
54eaff26ea
Fix partyMemberIncLevels
2022-12-13 23:35:15 +03:00
Alexander Batalov
5a7ffde45e
Fix max party member level
2022-12-13 23:29:34 +03:00
Alexander Batalov
1c0385ad11
Remove _obj_fix_combat_cid_for_dude
...
The same cid-to-object conversion performed by `combatLoad`.
2022-12-13 23:06:52 +03:00
Alexander Batalov
0fe6d88a3a
Review combatLoad
2022-12-13 23:03:42 +03:00
Alexander Batalov
7596d4d721
Fix combat_is_shot_blocked
2022-12-13 22:18:12 +03:00
Alexander Batalov
8333e553e2
Add SubtileFill
2022-12-13 22:11:37 +03:00
Alexander Batalov
6f62cfd466
Fix critters dying on exit grids
2022-12-13 16:33:19 +03:00
Alexander Batalov
280b55ab05
Add isExitGridPid
2022-12-13 14:34:49 +03:00
Alexander Batalov
e02dcdf69d
Fix car disappearing when using town interface
2022-12-13 13:20:55 +03:00
Alexander Batalov
b5701fb9b9
Fix worldmap scroll down button
2022-12-13 12:45:39 +03:00
Alexander Batalov
c569b879f6
Fix opPrint
2022-12-13 11:35:07 +03:00
Alexander Batalov
b36ac50425
Review windowShow
2022-12-13 10:37:52 +03:00
Alexander Batalov
029a84a113
Review gWindowIndexes
2022-12-13 10:18:02 +03:00
Alexander Batalov
e6fddd6905
Rename window flags
2022-12-13 10:04:05 +03:00
Alexander Batalov
b0b69bd780
Fix wmMapIdxToName
2022-12-09 00:52:03 +03:00
Alexander Batalov
6de4ac87df
Use snprintf
2022-12-08 23:05:50 +03:00
Alexander Batalov
502c920656
Add reportOverloaded
2022-12-08 22:05:54 +03:00
Alexander Batalov
c383fc6b95
Add mobile keyboard support ( #206 )
2022-12-08 20:41:59 +03:00
Alexander Batalov
0d93279a10
Fix missing include
2022-12-08 19:38:55 +03:00
Alexander Batalov
510d7bfe95
Reorganize includes
2022-12-08 19:18:39 +03:00
Alexander Batalov
19d0d2919f
Remove unnecessary includes
2022-12-08 17:29:30 +03:00
Alexander Batalov
42f01c8d45
Remove unused 16bpp code
2022-12-08 17:26:28 +03:00
Alexander Batalov
0474199b5c
Remove unnecessary include
2022-12-08 17:13:06 +03:00
Alexander Batalov
8a4ce6c658
Improve splash screen handling ( #3 )
...
* Fixes splash screens in Olympus
2022-12-08 16:41:55 +03:00
Alexander Batalov
884034f0bf
Refactor stretching blitters
...
* Fixes skipped pixels
* Improves readability
2022-12-08 16:34:38 +03:00
Alexander Batalov
602ef7c1e1
Increase maps ambient sfx capacity
2022-12-08 14:10:31 +03:00
Alexander Batalov
897ff2bbd2
Add dialog options numbering
2022-12-08 10:58:54 +03:00
Alexander Batalov
9ade107e95
Rename Button fields
2022-12-07 16:42:37 +03:00
Alexander Batalov
1698cfa04b
Rename Window fields
2022-12-07 16:39:30 +03:00
Alexander Batalov
59639c60a3
Cleanup
2022-12-07 10:17:48 +03:00
Alexander Batalov
f056f0e131
Add opGetGameMode ( #200 )
2022-12-06 17:46:52 +03:00
Alexander Batalov
dc90beb696
Add game mode tracking
2022-12-06 17:22:30 +03:00
Alexander Batalov
90da2164f2
Fix assignment
2022-12-06 17:13:48 +03:00
Alexander Batalov
9d9e09e80f
Use MESSAGE_LIST_ITEM_FIELD_MAX_SIZE
2022-12-06 12:37:59 +03:00
sonilyan
cd51e0cdd7
Fix crash for msg limit ( #203 )
2022-12-06 12:32:21 +03:00
drjfaust
d49869f45c
Fix several combat bugs ( #204 )
2022-12-06 12:17:11 +03:00
Alexander Batalov
3a541d4b67
Fix endurance label
...
Closes #201
2022-11-10 23:48:09 +03:00
Alexander Batalov
7471f9cdbe
Fix palette fading
2022-11-10 23:43:18 +03:00
Alexander Batalov
fe9ba9171e
Add custom message lists support
...
Closes #130
See #200
2022-11-10 18:07:23 +03:00
Alexander Batalov
6c03e4e293
Fix storing pointers in map global variables
2022-11-09 14:35:07 +03:00
Alexander Batalov
3f25c9265b
Fix arguments order
2022-11-09 13:54:32 +03:00
Alexander Batalov
fa475c754e
Add opReadByte
...
See #200
2022-11-09 13:09:56 +03:00
Alexander Batalov
5e9cf96106
Rename state structs
...
Fixes UB leading to crash when exiting the game
2022-11-09 11:41:53 +03:00
Alexander Batalov
a70912d311
Fix ini section parsing
2022-11-09 11:11:19 +03:00
Alexander Batalov
67351b8b09
Fix player model customization
2022-11-09 10:21:12 +03:00
Alexander Batalov
e0e0a1ee7d
Add Sfall list functions
...
See #200
2022-11-08 22:55:25 +03:00
Alexander Batalov
fa11122f87
Make spatial script finders public
2022-11-08 22:45:30 +03:00
Alexander Batalov
ef54463fcc
Add pc bonus stats opcodes
...
See #200
2022-11-08 18:59:14 +03:00
Alexander Batalov
2255481d50
Add missing header
2022-11-08 18:07:11 +03:00
Alexander Batalov
03a7e2e1b1
Add some Sfall global vars functions
...
See #200
2022-11-08 18:01:00 +03:00
Alexander Batalov
19bcfebe0d
Add ammo/charges opcodes
...
See #200
2022-11-07 20:41:33 +03:00
Alexander Batalov
393d89f8c4
Add some Sfall opcodes
...
See #200
2022-11-07 20:03:04 +03:00
Alexander Batalov
9c6286f94a
Increase number of opcodes
2022-11-07 19:06:37 +03:00
Alexander Batalov
fa058f24b4
Add interface bar side panels
...
See #3
2022-11-07 16:05:34 +03:00
Alexander Batalov
b2420bdc80
Refactor artLock with FrmImage
2022-11-07 13:55:05 +03:00
sonilyan
23bee9fd62
Add IFACE_BAR_WIDTH support ( #188 )
2022-11-07 13:35:22 +03:00
Alexander Batalov
3ec827d5c1
Fix worldmap position calculation
...
Closes #192
2022-11-07 10:59:16 +03:00
Alexander Batalov
c692fc91af
Fix error check
...
Closes #196
2022-11-03 18:16:50 +03:00
Alexander Batalov
a38151bf2c
Reorganize control flow in gdCustomSelect
...
Fixes #198
2022-11-03 18:08:49 +03:00
Alexander Batalov
b689b3a757
Fix combat control fields not being cleared
...
Closes #194
2022-11-03 17:48:34 +03:00
Alexander Batalov
e7d68c4f72
Get rid of PreferenceDescription packing
...
Fixes pointer alignment warnings.
2022-10-30 13:00:43 +03:00
Alexander Batalov
bc43bdc99c
Rename some variables in objectSetLocation
2022-10-30 09:39:43 +03:00
Alexander Batalov
e5aa4a3518
Fix square tiles initial lookup
2022-10-30 09:31:09 +03:00
Alexander Batalov
4e98093d6c
Fix crash when removing all scripts
2022-10-30 09:03:24 +03:00
Alexander Batalov
1342fd3ecf
Fix warning
2022-10-30 08:45:04 +03:00
Alexander Batalov
3015f39368
Review interfaceFontGetStringWidthImpl
2022-10-30 08:41:00 +03:00
Alexander Batalov
37f7ecc1c3
Review SlotMap2Game
2022-10-29 21:27:08 +03:00
Alexander Batalov
bdf2c219ab
Fix error check
2022-10-29 21:09:53 +03:00
Alexander Batalov
3488833c2e
Use SDL for logging
2022-10-29 20:57:11 +03:00
Alexander Batalov
4821cab724
Review tileSetCenter flags
2022-10-29 18:52:22 +03:00
Alexander Batalov
0851354c8a
Rename _square_y
2022-10-29 18:25:28 +03:00
Alexander Batalov
2f42818a33
Review square coords math
2022-10-29 18:23:53 +03:00
Alexander Batalov
12367acb33
Fix byte swapping warnings
2022-10-29 18:17:57 +03:00
Alexander Batalov
caa8b06d4f
Fix UB when parsing encounter table
2022-10-29 18:14:49 +03:00
Alexander Batalov
2b63360b95
Fix memory alignment
2022-10-29 17:26:46 +03:00
Alexander Batalov
8dd8d1c312
Replace random generator
2022-10-29 17:21:54 +03:00
Alexander Batalov
8ee0f478ad
Fix setting managed button procs
2022-10-28 11:02:53 +03:00
Alexander Batalov
9c6daa4abe
Fix selecting managed window
2022-10-28 10:59:38 +03:00
Alexander Batalov
01f264e0c2
Fix color setters
2022-10-28 10:35:22 +03:00
Alexander Batalov
1bbd586cbb
Fix trimming line ending in .lst files
2022-10-26 10:17:39 +03:00
Alexander Batalov
223930c464
Get rid of goto
2022-10-25 17:37:45 +03:00
Alexander Batalov
40510539ee
Fix interface font loading
2022-10-25 15:57:31 +03:00
Alexander Batalov
c47113ca29
Force screen redraw after playing movies
...
Fixes #180
2022-10-25 13:05:09 +03:00
Alexander Batalov
ad9b8586e9
Fix testing pointers for nulls in Nevada
...
Closes #178
2022-10-25 09:57:13 +03:00
sonilyan
5b151634a5
Fix memory alignment ( #187 )
2022-10-25 09:12:54 +03:00
Martin Janiczek
7627092478
Make sfall key naming consistent ( #172 )
2022-10-25 09:05:09 +03:00
Martin Janiczek
b60fe43b06
Refactor: use enum instead of magic numbers ( #176 )
2022-10-25 09:04:42 +03:00
Alexander Batalov
21aec548af
Add iOS support ( #167 )
2022-10-14 11:40:11 +03:00
Alexander Batalov
beb010cd0f
Normalize fade duration
...
See #165
2022-10-11 17:58:02 +03:00
Alexander Batalov
b23d05f850
Fix called shot window freeze
...
See #165
2022-10-10 11:42:10 +03:00
Alexander Batalov
e16659d96d
Fix key processing
...
Fixes buffer-underwrite crash on macOS when scancode is remapped to -1.
2022-10-08 12:32:50 +03:00
Alexander Batalov
4c1020af5f
Fix path handling in _gsound_get_music_path
2022-10-08 10:56:46 +03:00
Alexander Batalov
a4105d5826
Decouple drawing and rendering ( #165 )
2022-10-08 00:54:27 +03:00
Alexander Batalov
ddae4df4ab
Fix red dialog buttons
2022-10-07 23:31:17 +03:00
Alexander Batalov
74a9a9e530
Add audio engine initialization check
...
Fixes various bugs when movie system attemps to create audio buffer with
sound system being disabled via fallout2.cfg.
2022-10-07 15:17:07 +03:00
Alexander Batalov
223d214f57
Review lsgSaveGame
...
* Add scrolling
* Rename variables
2022-10-07 12:04:30 +03:00