Commit Graph

1779 Commits

Author SHA1 Message Date
b0fddcd8a6 Update Xcode project and fix Mac build 2020-01-26 13:06:22 -05:00
542c037342 Integrate a new resource manager which should have better performance 2020-01-26 11:53:19 -05:00
29ef8b9c1e Refactor the game event loop and add menus to the Linux build
Patch from @x-qq
Addresses #195
2020-01-25 17:57:32 -05:00
1fcbd8e922 Rearrange the dialog event loop a little
This patch is contributed by @x-qq
and should improve CPU usage on Linux.
2020-01-20 19:47:09 -05:00
fd139c59de Fix incorrect Prevent Action special nodes in the scenarios, caused by incorrect import code
The fix was implemented by re-importing the legacy scenarios and re-exporting them,
then simply accepting any changes to a Prevent Action node.
2020-01-19 16:51:48 -05:00
9691470611 Fix the legacy special tests 2020-01-19 16:26:24 -05:00
488e5a2570 Fix import of legacy Wandering Will Fight special nodes
After checking legacy documentation, I determined that
the meaning of ex1a is reversed in the latest code.
2020-01-19 16:26:15 -05:00
cf3f20ffcc Clean up outdoor wandering monsters function, removing a useless parameter 2020-01-19 16:25:35 -05:00
166965fdd0 Fix merge error (calling show_logo twice) 2020-01-19 15:55:59 -05:00
6d5b484ecd Scons: debug builds should be unoptimized 2020-01-19 15:39:42 -05:00
56523f1623 Fix import issue with Can't Enter special nodes 2020-01-19 15:39:42 -05:00
3f38ce1fed Rearrange the main game event loop a little
This patch is contributed by @x-qq
and should improve CPU usage on Linux.
2020-01-19 15:39:42 -05:00
a5a7f161c8 Remove the init thread from the scenario editor
The reasoning is the same as for the main game.
2020-01-19 15:39:41 -05:00
e4b98a1634 Add a hidden preference to skip the Spiderweb logo at startup
The same preference also skips the scenario editor startup splash
In order to enable that, the scenario editor now loads prefs.
2020-01-19 15:39:41 -05:00
36b4f6edc1 Remove an unused variable
(Thanks to @x-qq for noticing it was never assigned)
2020-01-19 15:38:05 -05:00
fa7158de03 Fix exportGraphics not checking previously-exported monsters
I'm actually not sure whether this is necessary,
but decided to err on the side of caution
(since check_item does the same thing).
2020-01-19 15:38:05 -05:00
0ffcdf3e5e Print paths to console on startup, like Wesnoth does 2020-01-19 15:38:05 -05:00
cb8bf96832 Fix buffer overflow in exportGraphics 2020-01-19 15:38:05 -05:00
4fdd330d07 Setting up Apple Events needs to be done early in initialization, otherwise the event will time out and the Finder will show an error that the program doesn't know how to open the saved gane. 2020-01-12 17:36:16 -05:00
44f18420bd Remove the init thread
It seems to cause problems on Linux and no benefit of it could be observed on Windows or Mac
2020-01-12 17:29:40 -05:00
fb28a4da2e Fix Mac build 2020-01-12 13:19:32 -05:00
fa25beae6d Apparently referencing the superclass by unqualified name is not allowed 2020-01-12 12:33:58 -05:00
c5dedeb2a7 Fix missile graphic not being written to the saved game
Should fix #202
2020-01-12 12:31:14 -05:00
e42baa0971 This should fix some ambiguities in the enum_map 2020-01-12 12:21:18 -05:00
e39ccf745b VoDT: Fix various out-of-range message errors 2020-01-12 12:16:14 -05:00
409fe41030 Ignore numpad keys for keyToChar conversion 2020-01-12 10:58:33 -05:00
479cfb75f6 Fix improper loading order with saved games 2020-01-02 00:28:52 -05:00
b6aee36a0c Write hidden/visible state for EVERY town in the save file, even if it's equal to the scenario default
This should fix #197 for any new saves created after the fix.
2019-12-30 01:48:00 -05:00
6ae8a313b5 Fix "Quit" and red button appearing over the credits when you click them
Fixes #205
2019-12-30 01:35:54 -05:00
5ca27fdad5 Fix items that cause a status effect or cast a spell 2019-12-29 14:11:19 -05:00
7233a8ba78 Change obsolete How to Order button to Preferences
This will allow Linux users to access the preferences UI while I work out how to implement menus on Linux
2019-12-29 13:29:58 -05:00
699e66a69c Remove obsolete failing test 2019-12-29 13:26:00 -05:00
402f4eae01 Fix saving for double preferences (UIScale) on Windows/Linux 2019-12-29 13:19:42 -05:00
d12fd43d15 Fix the save action
- Prompt for filename if the game has never been saved
- Don't say the game was saved if file choice was cancelled (affects save as too)
2019-12-29 13:09:55 -05:00
1bd23ace69 Better detection of doubles in Windows/Linux preferences 2019-12-29 12:48:10 -05:00
45bbc12208 Linux builds require linking to pthread 2019-12-29 12:25:44 -05:00
13e61047d9 VoDT: Merge Bristow's shops into a single shop 2019-12-14 12:14:39 -05:00
7ba61508f2 Fix garbage text appearing with the game version 2019-12-02 01:16:55 -05:00
6f96222c37 Remove the 30-item limit in shops 2019-12-02 01:16:34 -05:00
fd8bd913cc Fix monsters killed in town not being initialized,
resulting in garbage values after loading a saved game
2019-12-01 14:36:14 -05:00
b8669ac04a Fix play_sound function interpreting -65535 as sound 1.
It now correctly treats it as a sound that doesn't exist,
and plays nothing.
2019-12-01 14:22:39 -05:00
3e6d3b9d5e Fix shop scrollbar not appearing if there are 9 items (when only 8 fit) 2019-11-24 20:28:53 -05:00
1b1aba0bd5 VoDT: Merge some of the shops 2019-11-24 20:28:53 -05:00
6ca89a66a9 Fix items being unequipped sometimes when an item is picked up 2019-11-24 20:28:53 -05:00
761af9d60f Fix showing wrong buttons in the item list 2019-11-24 20:28:53 -05:00
ab740370ee Fix some potential uninitialized variable accesses 2019-11-24 20:28:53 -05:00
b8689511cd Use -1 instead of 120 to mark an invalid location. 2019-11-24 20:28:53 -05:00
8392ee85e8 Make more use of references to shorten long lines of code
This goes through just four files for unnecessary uses of univ.party[n].
2019-11-24 20:28:53 -05:00
3302dd68b7 Move encumbrance calculation functions into cPlayer 2019-11-24 20:28:53 -05:00
060be4dd42 Remove some extern data declarations that didn't exist anymore (and weren't used) 2019-11-24 20:28:52 -05:00