Commit Graph

607 Commits

Author SHA1 Message Date
Jan Šimek f510545bc3
Rename function parameters and use ROTATION_COUNT enum (#39) 2022-06-10 09:23:43 +03:00
Alexander Batalov e35594040d Add custom karma folder graphics
Closes #38
2022-06-09 09:53:41 +03:00
Alexander Batalov ba1715d9b0 Add karma changes display
See #38
2022-06-08 23:33:54 +03:00
Alexander Batalov 5731cd6058 Fix player model settings 2022-06-08 23:15:30 +03:00
Alexander Batalov 0c7245fa09 Add player model settings
See #29
2022-06-08 22:01:25 +03:00
Jan Šimek e27f72f52b
Rename object flags according to Sfall (#37) 2022-06-08 20:38:46 +03:00
Alexander Batalov 9cad93c764 Reconcile script fixes from reference edition 2022-06-08 20:35:51 +03:00
Wipe 5a0d5d2538
Add SFall Misc->MainMenu*FontColour (#36) 2022-06-08 00:20:55 +03:00
k3tamina 12cbfe262c
Fix save game preview (#33) 2022-06-08 00:14:52 +03:00
Wipe 893dc0e090
Tweak configGetInt() to read hex strings properly (#35) 2022-06-08 00:00:19 +03:00
Alexander Batalov 2c05b8683d Fix dialog display centering 2022-06-07 23:41:24 +03:00
Alexander Batalov f67841d3b9 Fix strupr 2022-06-07 23:31:38 +03:00
Alexander Batalov a49970ac3f Decompile editor options window 2022-06-07 23:18:59 +03:00
Jan Šimek e6dfce21c9
Properly destroy SDL window (#34) 2022-06-05 23:21:28 +03:00
Alexander Batalov a3390819d1 Reconcile with reference edition 2022-06-05 01:01:49 +03:00
Wipe 2991877b13
Add SFall Misc->SkipOpeningMovies (#30) 2022-06-04 13:22:40 +03:00
Wipe dd20063a2e
Fix dialog caps not rendered after exiting barter (#31) 2022-06-04 13:14:53 +03:00
Alexander Batalov 0819937e56 Fix timeGetTime on Linux 2022-06-02 21:11:23 +03:00
k3tamina 2e7070a942
ISO C++ forbids converting a string constant to char* (#26) 2022-06-02 11:44:12 +03:00
Jan Šimek 571c0db190
Fix linux build (#25)
Co-authored-by: Alexander Batalov <alex.batalov@gmail.com>
2022-06-02 11:31:03 +03:00
Alexander Batalov 501ae1161d Wrap sound stuff
See #17, #24
2022-05-30 00:40:09 +03:00
Alexander Batalov e7f6bbf867 Wrap mmx probe 2022-05-30 00:29:58 +03:00
Alexander Batalov c7397826cc Add missing includes
See #17
2022-05-30 00:29:05 +03:00
Alexander Batalov 3571db7f40 Remove unnecessary io.h 2022-05-29 22:11:00 +03:00
Alexander Batalov 0472ac9a22 Wrap windows api
See #17, #24
2022-05-29 22:08:13 +03:00
Alexander Batalov 24fdfc065f Add missing includes 2022-05-29 22:00:50 +03:00
Alexander Batalov 45d266a290 Replace rotl 2022-05-29 21:57:35 +03:00
Alexander Batalov ca68373e74 Wrap DirectSound
See #17, #24
2022-05-29 20:07:43 +03:00
Alexander Batalov 6dd55e4ee9 Improve protoGetDataMember
Reduces number of cast complaints in macOS/x64.

See #24
2022-05-29 18:25:34 +03:00
Alexander Batalov 3d6019d2ec Provide timeGetTime compatibility layer
See #17, #24
2022-05-29 18:15:48 +03:00
Alexander Batalov 3d477ed235 Provide mkdir compatibility layer
See #17, #24
2022-05-29 18:08:55 +03:00
Jan Šimek 14aa86c4b7
Reorganize variables scope for goto (#23)
Co-authored-by: Alexander Batalov <alex.batalov@gmail.com>
2022-05-29 16:40:49 +03:00
Alexander Batalov 6929e054a9 Reorganize variables scope for goto
Fixes AppleClang complaints.

See #17
2022-05-29 00:32:50 +03:00
Jan Šimek 86c0585efc
Provide filepath compatibility layer (#22)
Co-authored-by: Alexander Batalov <alex.batalov@gmail.com>
2022-05-29 00:22:40 +03:00
Alexander Batalov 442e0a17ab Provide splitpath/makepath compatibility layer
See #17
2022-05-28 23:17:48 +03:00
Alexander Batalov 5ce83bc29d Reorganize includes 2022-05-28 21:46:58 +03:00
Alexander Batalov 220fb1a196 Decompile interface font byte swap functions
See #17
2022-05-28 21:39:47 +03:00
Alexander Batalov 14ce3994ce Replace min/max macro
See #17
2022-05-28 14:45:48 +03:00
Alexander Batalov 17dc61b782 Make randomGetSeed cross-platform
See #17
2022-05-28 14:08:00 +03:00
Alexander Batalov 6ae1afc57c Make file find utils cross-platform
See #17
2022-05-28 14:01:52 +03:00
Alexander Batalov 451e73293b Add missing include 2022-05-28 12:49:55 +03:00
Alexander Batalov bf9b865efd Add missing include 2022-05-28 12:48:26 +03:00
Alexander Batalov b1216967c0 Replace MAX_PATH with COMPAT_MAX_PATH 2022-05-28 12:34:49 +03:00
Alexander Batalov 4bac829739 Add string functions compatibility layer
See #17
2022-05-28 11:57:32 +03:00
Alexander Batalov e1cf71eac7 Add overwrite param (#20) 2022-05-28 11:29:45 +03:00
Jan Šimek 23c0d3b873
Replace CopyFileA with a cross-platform function (#20)
Co-authored-by: Alexander Batalov <alex.batalov@gmail.com>
2022-05-28 10:38:16 +03:00
Alexander Batalov 6714aebbad Replace GetTickCount with SDL_GetTicks 2022-05-28 09:32:36 +03:00
Alexander Batalov 7174cc703d Reorganize fpattern config 2022-05-28 08:35:23 +03:00
Alexander Batalov 119cfe8212 Remove static assertions
They were aid to decompilation, now they are source of complaints when compiling for x64.
2022-05-28 07:34:29 +03:00
Alexander Batalov 7a1119bac0 Use C++ noreturn attribute 2022-05-28 07:26:08 +03:00
Jan Šimek 49f0d833ab
Fix help and end game window positions (#21) 2022-05-28 06:57:53 +03:00
Jan Šimek ad1fb7765b
Remove the use of stdbool (#19)
It should not be needed anymore after the migration to C++
2022-05-28 06:55:42 +03:00
Alexander Batalov b467198f16 Introduce sfall config 2022-05-26 00:16:20 +03:00
Alexander Batalov bc8db9e8c2 Get rid of command line args
With new `main` it's no longer needed to collect argc/argv from cmdline.
2022-05-25 23:05:51 +03:00
Jan Šimek 0672161a47
Replace WinMain with the main function (#16)
Co-authored-by: Alexander Batalov <alex.batalov@gmail.com>
2022-05-25 22:41:11 +03:00
Jan Šimek da1808961b
Add StartingMap configuration option from Sfall (#15)
Closes #14
2022-05-25 22:15:04 +03:00
Alexander Batalov a2698b220c Get rid of DirectDraw 2022-05-24 23:19:36 +03:00
Alexander Batalov 2446621719 Rename tile stuff 2022-05-24 01:37:46 +03:00
Alexander Batalov 21101ef355 Fix window surface cache
Closes #1
2022-05-24 00:18:41 +03:00
Alexander Batalov 2d54e41fdb Fix tile border calculation
See #9
2022-05-23 22:41:54 +03:00
Jan Šimek 03b5771e8f
Fix mouse clicking around interface if IFACE_BAR_MODE is enabled (#12)
See #3
2022-05-23 22:24:05 +03:00
Alexander Batalov c634499a87 Get rid of DirectInput
See #1
2022-05-23 11:44:49 +03:00
Alexander Batalov 99ddcd3d0e Fix save game preview
See #3
2022-05-23 11:16:04 +03:00
JordanCpp 1f8a62f2b6
Add fps limit (#10) 2022-05-23 11:13:28 +03:00
Jan Šimek 0c61f74ba9
Fix indicator bar position (#7)
Closes #6
2022-05-22 13:55:49 +03:00
Alexander Batalov be81049ff5 Fix inventory window position
See #3
2022-05-22 13:33:41 +03:00
Alexander Batalov 1267b8ddfb Fix movie positioning
See #3
2022-05-21 23:04:08 +03:00
Jan Šimek 86d8a92ce0
Add IFACE_BAR_MODE configuration option from HRP (#5)
See #3
2022-05-21 21:30:25 +03:00
Alexander Batalov 6725edcf5f Fix main menu underlay window position
See #3
2022-05-21 21:06:13 +03:00
Alexander Batalov c0b9290e73 Fix load/save game window position
See #3
2022-05-21 21:03:48 +03:00
Alexander Batalov e177b11d0d Fix death window position
See #3
2022-05-21 20:42:14 +03:00
Alexander Batalov e6808d30aa Fix main menu position
See #3
2022-05-21 20:35:18 +03:00
Alexander Batalov cffd0321f6 Fix splash position
See #3
2022-05-21 20:29:02 +03:00
Alexander Batalov 2148d52cca Fix gender selector position 2022-05-21 20:08:20 +03:00
Alexander Batalov 44ae520284 Remove flexible array member 2022-05-21 20:05:34 +03:00
Alexander Batalov 98c6acbf11 Convert to C++ 2022-05-21 18:22:03 +03:00
Alexander Batalov 2d5cb4061d Fix game dialog window position
See #3
2022-05-21 14:04:50 +03:00
Jan Šimek feaa8f639b
Fix credits window position (#4)
* Rename variables and match coding style
* Fix character selection position
* Fix credits position

See #3
2022-05-21 14:00:30 +03:00
Alexander Batalov 44a72c6b2b Fix character editor window position
See #3
2022-05-21 13:17:51 +03:00
Alexander Batalov 17cca452bb Fix pause window position
See #3
2022-05-21 11:40:54 +03:00
Alexander Batalov 4f20671d82 Fix preferences window position
See #3
2022-05-21 11:34:11 +03:00
Alexander Batalov 1431a1951b Fix dialog box position
See #3
2022-05-21 11:23:43 +03:00
Alexander Batalov 78e8adbecb Maintain skilldex window relative position 2022-05-21 11:02:34 +03:00
Alexander Batalov e907e3d729 Fix mouseHitTestInWindow declaration 2022-05-21 03:27:41 +03:00
Alexander Batalov f60b8eecfd Fix worldmap window position
See #3
2022-05-21 03:25:03 +03:00
Alexander Batalov 9d53098427 Fix skilldex window position
See #3
2022-05-21 03:10:45 +03:00
Alexander Batalov 227bd81fda Fix called shot window position
See #3
2022-05-21 03:05:43 +03:00
Alexander Batalov f556b7ba2d Fix elevator window position 2022-05-21 02:43:06 +03:00
Alexander Batalov ac3f8dacaa Fix options position
See #3
2022-05-21 02:35:18 +03:00
Alexander Batalov 73d624a46c Fix pipboy position
See #3
2022-05-21 02:29:59 +03:00
Alexander Batalov 6c4927b129 Fix automap position
See #3
2022-05-21 01:56:07 +03:00
Alexander Batalov 0893467f08 Fix indicator bar position
See #3
2022-05-21 01:50:14 +03:00
Jan Šimek 7495659fc0
Fix interface bar position when using custom resolution (#2)
See #3
2022-05-21 01:37:05 +03:00
Alexander Batalov 4e7489e105 Fix to prevent corpses from blocking line of fire 2022-05-20 11:10:56 +03:00
Alexander Batalov d336a84e20 Fix party member equipped item after level up 2022-05-20 11:06:19 +03:00
Alexander Batalov 01561a76b2 Fix death screen speech playback 2022-05-20 11:02:31 +03:00
Alexander Batalov 4779422285 Fix music volume when entering dialog 2022-05-20 10:58:35 +03:00
Alexander Batalov 9b40ef4675 Fix dangling player name in dialog review 2022-05-20 10:56:04 +03:00
Alexander Batalov 7db7a9afe2 Fix execution of scripts when playing movies 2022-05-20 10:43:35 +03:00
Alexander Batalov 8fd7a540e3 Limit knockdown distance 2022-05-20 10:39:55 +03:00
Alexander Batalov 6e4f7e6c8c Fix obstacle flags for ranged attacks 2022-05-20 10:38:01 +03:00
Alexander Batalov 7b98bc76e2 Fix potential crash in opCreateObject 2022-05-20 10:31:24 +03:00
Alexander Batalov ac9293c3d5 Fix adding items on critters with barter flag 2022-05-20 10:30:04 +03:00
Alexander Batalov cdafe0c654 Fix music in loading screen 2022-05-20 10:27:35 +03:00
Alexander Batalov 5e82f600af Fix text objects limit 2022-05-20 10:18:50 +03:00
Alexander Batalov 8565a55540 Convert low-level rendering to SDL 2022-05-19 14:01:17 +03:00
Alexander Batalov 55661742a2 Initial commit 2022-05-19 11:51:26 +03:00