xphere07
674134588c
Upgrade to C++17 ( #819 )
2021-12-13 14:41:02 +01:00
Tamás Bálint Misius
ce84e60074
Fix a few warnings
...
I found these looking at ghactions output.
2021-12-09 09:11:47 +01:00
Tamás Bálint Misius
c0e3818df3
Save higher halves of tmp3 and tmp4 if needed ( fixes #822 with dbd971fb
)
2021-12-09 08:40:27 +01:00
Tamás Bálint Misius
dbd971fb05
Convert float pavg[2] to int tmp3, tmp4
...
Also add GameSave::PressureInTmp3 to check for elements with pressure memory and fix TUNG not sampling pressure on creation. This does not in itself fix #822 because tmp3 and tmp4 are still saved in 16 bits each, so full ctypes still don't fit in tmp3.
2021-12-09 07:49:31 +01:00
Tamás Bálint Misius
504fd21909
Ignore ignore/
...
How has this not been done on master yet? >_> Accidentally committed a valgrind suppression file because of this last commit.
2021-12-08 14:33:28 +01:00
Tamás Bálint Misius
9f75f7e5fc
Port to_array.py to C++
...
This gets rid of a dependency on Python in $PATH (although Python is likely installed if we're using Meson). Nix people will like this a lot.
2021-12-07 17:20:17 +01:00
Tamás Bálint Misius
b587732d7b
Fix render failing to compile with GCC 11
...
Due to Client::SetPref not being available for use by AddCustomGol. GCC 7 didn't mind this, weird.
2021-12-07 16:44:48 +01:00
jacob1
c25e35e9ff
Read float bson settings as floats, not ints
2021-11-20 23:56:47 -05:00
Tamás Bálint Misius
cb7665b631
Fix starcatcher-release step (see 8c80dca9
)
2021-11-17 20:38:16 +01:00
Tamás Bálint Misius
51b8b0bf38
Fix linker -no-pie flag *again* (broken by b5d17121
)
2021-11-13 06:37:54 +01:00
Tamás Bálint Misius
8c80dca91b
Print starcatcher release response to console if it fails
...
I guess we'll see at the next release whether I did this correctly.
2021-11-08 15:32:05 +01:00
jacob1
858ba7cc93
TPT is no longer compiled using scones.
2021-10-28 22:58:37 -04:00
Tamás Bálint Misius
f07879d165
Fix potential crash when adding a custom GOL type
...
GOLWindow would try to access a GOLTool that would have been deleted earlier when the menus were rebuilt.
2021-10-27 21:20:58 +02:00
Tamás Bálint Misius
0f2eedd4fb
Make thread_local replacement for MinGW slightly nicer
2021-10-23 10:08:26 +02:00
jacob1
0ed8d0a0be
Fix flood_water movement cancel check
...
This fixes a crash with water equalization on, with loop mode enabled, when there are high velocity particles near the edges. This can be occasionally reproduced with id:2800901
The water was moved to a new position and pmap updated, but the movement code continued, assuming water was at its old position. pmap for the WATR's old position won't be cleared once it moves, leaving a stale entry. If a particle then looks up the water in that location and tries to swap positions, this can cause a crash at the end of try_move
2021-10-23 00:52:13 -04:00
Tamás Bálint Misius
5582d6881d
Update tpt-libs, add support for compiling with MinGW on Windows
2021-10-22 23:14:54 +02:00
Tamás Bálint Misius
6653080400
Fix cursor placement in textboxes with single-character text
...
TextWrapper used faulty logic for converting local points to wrapped text indices: a check on curr was skipped if next was end-of-range.
2021-10-17 13:59:35 +02:00
Tamás Bálint Misius
afa9fd3d8f
Remove precompiled headers, fix a few problems they masked
2021-10-15 17:04:04 +02:00
Tamás Bálint Misius
d675d483bd
Leave the original GameSave alone in Simulation::Load
2021-10-13 11:26:48 +02:00
Tamás Bálint Misius
816b9eda3d
Disable text input as startup
...
We're not handling any keyboard input at that point anyway.
2021-09-05 19:30:55 +02:00
jacob1
1d0e039cec
Fix crash when closing game, while not on the main screen, with lua components active
...
Also delete unnecessary RemoveComponent call
2021-09-03 23:38:02 -04:00
Tamás Bálint Misius
6cb54b1857
Fix near-RTEMP temperatures being loaded incorrectly in some cases
2021-09-03 08:16:19 +02:00
jacob1
46d7682ed9
Regenerate window when changing sdl settings if "old fullscreen" is enabled
2021-09-03 00:06:15 -04:00
jacob1
50336565b4
Fix missing delete commandInterface, fix gc issue with LuaComponent/LuaWindow
...
lua_close wasn't being called at all before due to the delete commandInterface being missing. With it there, the lua gc could delete the LuaComponent before the LuaWindow. Make sure if that happens, it tells the parent LuaWindow it's already been gced
2021-09-02 23:31:30 -04:00
jacob1
4f8fc739ac
Version 96.2 (350)
2021-08-29 22:53:12 -04:00
jacob1
323c443d2a
Minor LIGH compat fix
...
old LIGH with invalid high .tmp2 will spawn a line of LIGH, rather than disappearing
2021-08-29 14:02:21 -04:00
jacob1
4f36ab10c1
Add back "Name already taken" message
2021-08-28 00:02:19 -04:00
jacob1
44590d82e9
Add a few more Lua functions
...
sim.replaceModeFlags
sim.listCustomGol
sim.addCustomGol
sim.removeCustomGol
tpt.perfectCircleBrush
sim.floodDeco
2021-08-27 23:57:55 -04:00
jacob1
63fe8e46b2
LIGH now lasts longer and expands frame-by-frame, fix LIGH stamping bug
2021-08-26 22:26:55 -04:00
Tamás Bálint Misius
688dc272e4
Update tpt-libs
...
Also remove duplicate momentumScroll member from Engine.
2021-08-22 12:42:33 +02:00
Tamás Bálint Misius
b5d1712123
Define lua_pushglobaltable only if it's not already defined
...
This fixes compatibility with moonjit, a luajit replacement that lies about which API level it implements.
Also link more stuff statically on linux.
2021-08-09 07:17:34 +02:00
Tamás Bálint Misius
eac92d1b04
Optimise undo history memory usage
...
By storing only the differences between Snapshots where possible.
NOTE: This may be reverted later if it causes too much trouble.
2021-08-04 17:19:15 +02:00
Tamás Bálint Misius
ea07244119
Refresh history code in GameMVC
2021-08-04 17:08:23 +02:00
Tamás Bálint Misius
483fde0698
Fix GCC11-only errors and warnings
2021-08-04 16:58:44 +02:00
Tamás Bálint Misius
dd300e79d1
Don't complain about missing msvc libs when trying to compile with mingw gcc
...
(... which is not supported, so the libs for it are indeed missing, but the error message still involves msvc, which is wrong.)
2021-07-31 17:05:33 +02:00
Cracker1000
a3a45db3e4
Add AMBP and AMBM tools ( #778 )
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2021-07-29 17:50:24 +02:00
Maticzpl
4ed600b621
All HSV sliders in color picker ( #796 )
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2021-07-29 17:23:39 +02:00
catsoften
f13fe3d36b
Prevent property tool from being used with bad values ( #791 )
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2021-07-29 17:20:13 +02:00
Tamás Bálint Misius
e3c9176277
Bump version to 96.1.349
2021-07-18 20:34:36 +02:00
Tamás Bálint Misius
c0e065cc76
Fix certain Lua APIs mangling integers
...
Also fix a few warnings.
2021-07-18 20:33:50 +02:00
jacob1
133c8db0c7
Make Lua prints fade out better
2021-07-16 13:58:31 -04:00
Tamás Bálint Misius
5f90a80fe3
Disallow GOL rulesets with no B states
2021-07-15 21:05:24 +02:00
Tamás Bálint Misius
d040de396a
Fix find mode not always succeeding in darkening particles
2021-07-15 19:29:21 +02:00
Tamás Bálint Misius
11188c85c3
Fix element identifiers not being accepted by tpt __newindex
...
Becuase *of course* whether it succeds or not depends on whether you've rebuilt menus.
With all seriousness, the real culprit here is GameModel::GetToolFromIdentifier, which looks for tools in the menu section tool lists, plus another list with tools that aren't in any menu section. This is absolutely blaphemous, but I don't feel like refactoring this right now. It also wouldn't be a problem in itself, but allocating an element also doesn't rebuild these lists, only changing the MenuSection property and a few other obscure operations do. This makes allocating elements also rebuild these lists.
2021-07-14 08:48:42 +02:00
Tamás Bálint Misius
a463180e2a
Fix elem.allocate corrupting LSI when running out of IDs
...
The can_move bits weren't guarded by newID != -1.
2021-07-14 07:29:50 +02:00
jacob1
e80dc7b114
Preserve GoL deco in older saves; deco on builtin GoL no longer renders when decorations are off
2021-07-14 00:26:21 -04:00
jacob1
943f9d6c03
LITH explodes when overcharged, update charge graphics
2021-07-14 00:17:47 -04:00
jacob1
cea629c6c0
Make LITH->GLAS reaction easier
2021-07-13 23:01:02 -04:00
jacob1
31f1b62a4c
Disallow CGOL with duplicate rulestrings or names > 7 chars
2021-07-13 22:09:49 -04:00
jacob1
f2d92bc3d7
Don't let GLOW ctype go negative
2021-07-13 21:50:36 -04:00