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
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
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
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
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
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
5ea29710f0
Minor code cleanup
2019-11-24 20:28:52 -05:00
dc25cf6ffb
Move abil_chart to be private to cItem and fix missing entries for summoning and quickfire abilities
2019-11-24 20:28:52 -05:00
4f785e2650
Use enums for most of the rest of the game constants.
...
This adds an "enum map" type that allows safe usage of an enum to index an array.
(That is, it enforces that the index is of the enum type.)
2019-11-24 20:28:52 -05:00
4ad85936d3
Fix use of a static bitset to record whether items (in a dynamic vector) have been taken
2019-11-23 12:31:30 -05:00
4ad84e6cf8
Missed some when fixing #191
2018-04-07 09:38:13 -04:00
05c9936b48
fix #191
2018-04-06 21:02:01 -04:00
Rémi Verschelde
141cfab23c
Fix GCC build issue with ambiguous for loop iterator
...
Previous code would raise this error with GCC 5.5.0:
build/obj/scenario/monster.cpp:804:19: error: use of 'abil' before deduction of 'auto'
for(auto& abil : abil) {
^
I'd advise to do some further refactoring to prevent confusion between the public 'abil'
which is a map of two types of abilities, and the various local 'abil's that shadow it
in monster.cpp.
2018-04-05 11:13:58 +02:00
Michael D. Reiley
5a142a656a
Fix save filename newline bug on Linux
2018-03-23 17:39:13 -07:00
d1838991a8
This is an attempt to fix the Travis build errors due to mismatched virtual override signatures
2018-03-03 18:44:27 -05:00
ed402040c9
Fix the fix for Mac
2018-03-03 18:19:18 -05:00
ee0bfa835a
Fix merge errors
2018-03-03 18:05:05 -05:00
9073063423
Merge branch 'merge_linux' of https://github.com/murlock/cboe
2018-03-03 17:52:59 -05:00
Mark Clark
265f959ecf
Moved project;
2018-02-25 22:54:48 -05:00