Tamás Bálint Misius
cfeda0fdba
Fix GOL showing up where it shouldn't
...
The underlying problem was that the spreading step in SimulateGOL would record activity concerning a cell to builtinGol even if said cell already housed a non-GOL particle. The culling step handles these records and purges them once it's done (thus builtinGol only ever has non-zero values inside SimulateGOL), except in this case, it saw the non-GOL particle and skipped the cell without purging the corresponding records. This would later let GOL spread seemingly out of nowhere.
2021-07-11 12:21:48 +02:00
moonheart08
a014c81ad6
Last minute explosiveness enhancement for LITH ( #788 )
2021-07-10 16:17:58 -04:00
catsoften
c6a52d1425
Prevent ROCK from repeatedly breaking into STNE and reforming under pressure
2021-07-10 00:18:46 -04:00
jacob1
8a788fac78
Misc minor changes to new elements
...
LITH: show .tmp2 in HUD, remove outdated comment
SLCN: update description
ROCK: form under pressure from both normal LAVA and LAVA(STNE), as these are basically the same thing
2021-07-09 22:09:24 -04:00
moonheart08
66c5287824
Adjust color of LITH ( #787 )
2021-07-04 14:55:20 -04:00
jacob1
fe49e58de8
Make ROCK more resistant to DEST (like CNCT is)
2021-07-03 23:34:38 -04:00
catsoften
e97925f0fd
Change PTNM reactions to take pressure from reacting particle's coordinates ( #784 )
2021-06-27 20:27:02 -04:00
jacob1
91a1f19c52
Adjust LITH color slightly so that it isn't the same as CNCT
2021-06-27 18:47:09 -04:00
jacob1
76699d2f7e
Make ROCK harder to get, greatly increase ACID resistance
...
This helps prevent ROCK from appearing in normal situations, which can easily get to pressure > 2 just from the movement of the falling LAVA.
2021-06-27 18:39:51 -04:00
Tamás Bálint Misius
dcf0764fd8
Return a reason for failure from sim.loadStamp
2021-06-21 08:04:32 +02:00
Tamás Bálint Misius
ffe730c615
Save ambient heat temperature and add it to options
2021-06-04 22:39:07 +02:00
Simon Robertshaw
10a6bb7120
Remove pastel glow on "inactive" GLOW, fix FIRE_ADD variables.
...
FIRE_ADD, firea/r/g/b variables adjusted to work similar to v51.1.
Use RNG to assist with smooth(er) transition from PMODE_FLAT to PMODE_ADD
2021-05-22 21:48:06 +01:00
Sam Robertson
2c207a934e
Makes GLOW element glow under pressure. Fixes #774
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2021-05-22 11:18:31 +02:00
jacob1
14be92c013
Prop tool - only check GoL rulestings / names for ctype
...
They are meaningless when applied to any other property, even .type
2021-05-19 00:04:23 -04:00
jacob1
a25fa700e2
Don't show GoL .tmp in HUD, check if create_part was successful while simulating GoL
2021-05-11 23:40:31 -04:00
jacob1
829c0bced5
Fix issue allowing drawing unlimited LIGH with 1x1 cursor
...
Also fix warnings from a previous commit
2021-05-10 21:04:08 -04:00
jacob1
aac6b7258c
Improve stack pasting behavior
...
It will now clear all particles in positions being pasted over
2021-05-10 00:02:27 -04:00
Tamás Bálint Misius
2e16eecae0
Fix a bunch of LDTC and DTEC issues
...
Namely: LDTC GoL detection, ctype-drawing and HUD rendering, alongside DTEC HUD rendering.
2021-04-18 20:32:32 +02:00
jacob1
f441626de4
Fix some issues in elementCount
...
Count goes negative if an element is killed due to .life=0 on the same frame an elementRecount is scheduled
element count skyrockets when recount is scheduled during game pause
Element count increases by a static amount when undoing, because it schedules a recount without clearing the old counts
2021-04-18 14:01:51 -04:00
Tamás Bálint Misius
11f6abdfca
Update elementCount when restoring a snapshot ( fixes #592 )
2021-04-18 15:48:10 +02:00
moonheart08
a3f5731a43
Add element LITH ( #726 )
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2021-04-17 00:01:26 +02:00
jacob1
ffb88259d6
Split Simulation::IsValidElement into IsElement and IsElementOrNone
...
Allows finer control over whether you want none included or not.
Fixes some invalid things being allowed for element 0 in legacy lua api
Fixes {ctype} signs showing 0 instead of NONE
2021-04-11 23:20:33 -04:00
Tamás Bálint Misius
1859125218
Fix undo not updating air block map
2021-04-11 21:44:33 +02:00
jacob1
da2ccc70fe
Some ROCK fixes
...
Improve efficiency in FIRE logic, it no longer runs the check multiple times for each surrounding particle. RNG chances reduced accordingly.
Remove unnecessary code in init_can_move
Set Weight to 100, which is the proper max for weight
2021-03-30 23:14:53 -04:00
Tamás Bálint Misius
c7619387ac
Fix EXOT freezing upon failing to replicate a neighbour
2021-03-05 21:54:00 +01:00
Tamás Bálint Misius
92cb50505d
Make molten ROCK produce vertical clusters of GOLD ( fixes #762 )
...
Also make GOLD veins spread out a bit more.
2021-02-17 09:49:41 +01:00
Tamás Bálint Misius
4b7e85c2fb
Fix a metric ton of MSVC warnings
2021-02-15 21:24:44 +01:00
jacob1
d037178bb5
Fix infinite spark loops in photoelectric effect
2021-01-19 20:54:03 -05:00
Sebastián Mestre
36f661b87f
Clean up some code in Simulation::FloodINST ( #758 )
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2021-01-10 17:11:33 +01:00
Tamás Bálint Misius
8e21dc2646
Comply with another MSVC weirdness (see https://tpt.io/:24744 )
2021-01-03 00:02:48 +01:00
Tamás Bálint Misius
e9bed49906
Fix PIPE/PPIP breakage on rotation ( fixes #750 )
2020-12-15 21:40:15 +01:00
Tamás Bálint Misius
360297c338
Mesonification
2020-12-14 20:16:52 +01:00
Tamás Bálint Misius
091764533d
Reset molten SLCN tmp in reactions to prevent interference with products
2020-11-26 09:19:56 +01:00
Tamás Bálint Misius
86a621741d
Preserve stacked particles in saves being placed ( fixes #743 )
2020-11-16 12:54:15 +01:00
Tamás Bálint Misius
88f97ff2ec
Another GOL rendering fix
2020-10-29 17:17:09 +01:00
Tamás Bálint Misius
1369dbc489
Fix rendering of built-in GOL in thumbnails
2020-10-26 12:33:20 +01:00
Tamás Bálint Misius
02a3dcbaa2
Fix replace mode to allow replacing with GOL types
2020-10-12 18:48:20 +02:00
Tamás Bálint Misius
5a5eace691
Fix built-in GOL types
2020-10-12 17:36:24 +02:00
Tamás Bálint Misius
ba72dc7a22
Custom GOL ( #731 )
...
Co-authored-by: jacob1 <jfu614@gmail.com>
2020-10-08 20:23:59 +02:00
RCAProduction
1f7e9095da
Add element ROCK ( #724 )
2020-10-08 01:27:25 +02:00
Tamás Bálint Misius
99c99132bd
Make energy particles visible to LSNS ant HSWC for reals (see 6052ef6
)
2020-10-07 11:16:47 +02:00
Tamás Bálint Misius
02468d0786
Let ARAY control the life of all normal BRAY it spawns
2020-10-07 10:56:58 +02:00
Tamás Bálint Misius
6052ef6179
Make energy particles visible to LSNS ant HSWC for deserialization
2020-10-07 10:53:10 +02:00
Cracker1000
00ddc1f8be
Add VSNS ( #707 )
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2020-10-07 10:49:31 +02:00
Tamás Bálint Misius
88fd676cd2
Fix stasis walls not keeping dying GOL cells in stasis
2020-09-22 19:43:01 +02:00
Bowserinator
0959354178
Customize BRAY collision life ( #712 )
2020-07-26 19:17:43 +02:00
Tamás Bálint Misius
94353a9a3b
Remove leftover cooldown-related code from ARAY and DRAY
2020-07-26 19:05:05 +02:00
Bowserinator
41254a2f95
Add PTNM (Platinum) ( #711 )
2020-07-26 18:48:15 +02:00
moonheart08
85ab70adb3
Add a reaction to produce BCOL
2020-07-26 11:53:37 +02:00
moonheart08
9413a1f0b6
Introduce element 187, SLCN. ( #704 )
...
Add SLCN
Co-authored-by: moonheart08 <moonheart08@noreply.github.com>
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2020-07-26 11:45:50 +02:00
Tamás Bálint Misius
9fcf780c78
Necromancy is bad
...
This is very similar to the SPRK-PROT bug (fixed by 4aa58d6c
)
in that the cause for a later crash is the free list of particles
being corrupted by messing with the .life property of a dead
particle.
The code in the loop body following this kill_part call has no
effect on other particles if the call were to happen. The only
thing this continue skips is increasing pressure under the now
dead particle.
Credit goes to @QuanTech for finding the problem, see id:2547788
(originally his save, I just saved to my alt account for future
reference).
2020-05-27 08:42:49 +02:00
QuanTech0
dda7747688
safeguard FloodParts and kill_part ( #717 )
2020-05-11 10:20:01 -04:00
jacob1
9188f7bf8b
FRAY: use floating point instead of double for this subtraction
2020-05-09 13:50:42 -04:00
jacob1
3fc6b38111
DRAY: don't attempt to copy a particle if we stopped due to being out of bounds
...
(efficiency reasons only)
2020-05-04 20:54:56 -04:00
jacob1
6f845ed4b4
Fix unnecessary break in LSNS. Closes #713
2020-05-02 11:24:18 -04:00
QuanTech0
4efe5875ab
Simulation::create_part sanity check
2020-04-26 21:00:41 -04:00
jacob1
323a850e16
Don't delete SPRK/METL in detector wall, don't allow drawing metal on detector wall
...
This fixes the only valid bug on the "Glitches" wiki page. All the rest were already fixed (multi-head stkm) or are not bugs (lava ice, "destroying" dmnd with dray)
2020-04-11 23:51:56 -04:00
Tamás Bálint Misius
fe15566d2c
Only change modes when the lock is being held, see 2333786
( fixes #700 )
2020-03-23 23:08:52 +01:00
Tamás Bálint Misius
4f01130ecc
Restrict saved version to 95.0 if signs with macros are present
2020-02-23 23:37:01 +01:00
jacob1
ffea880da1
Fix bug where deco renders on EMBR in save thumbnails
2020-02-09 14:10:27 -05:00
jacob1
6b73b2dd9b
Fix fighters sometimes loading from saves with no element
2020-02-08 11:10:53 -05:00
jacob1
ca8f4e3aac
replace mode: reset created element back to default properties, instead of just changing type
2020-02-08 10:40:29 -05:00
Tamás Bálint Misius
3c6ae35cc4
Fix PMAPBITS compile-time sanity check
2020-01-24 22:25:15 +01:00
Tamás Bálint Misius
7330d0412a
Fix random warnings from clang 8.0.0
2020-01-21 14:43:22 +01:00
Tamás Bálint Misius
4d52531889
Ditch element and tool classes
2020-01-09 19:22:11 +01:00
QuanTech0
78203fc219
Division by Zero fix ( #689 )
2020-01-01 23:03:35 -05:00
jacob1
2576175762
remove unnecessary arguments to FloodINST. Fix random warning.
2019-12-23 00:34:21 -05:00
Secundario
a05e20f1bf
Do a single CoordStack allocation per thread
2019-12-21 13:14:40 -05:00
jacob1
bf7d182de5
Add CreateAllowed and ChangeType events
...
Used in create_part, kill_part, and part_change_type, allows us to remove element-specific stuff in those functions
Note: difference between Create and ChangeType is that Create is called when we want to initialize default element properties, but ChangeType is called every time a particle is changed to that type, even if it doesn't need default properties set. ChangeType is mainly used for things that need accurate state tracking, like the stkm spawn status.
ChangeType is called every time a particle is changed to or from its type, which includes if the particle is deleted, and also Lua.
Neither of these functions are called when loading saves, that's probably an oversight, will fix later
2019-11-29 19:32:33 -05:00
jacob1
9993290b72
Add Create function, handles setting default properties for elements that need randomness or special code
...
Most of the switch statement in create_part is gone. There's a few others that I will get rid of in future commits. There will also be a CreateAllowed function, and a ChangeType. ChangeType will handle stuff that is duplicated in both create_part and part_change_type. Considering making a Destroy function instead of ChangeType, though.
Later on, Lua events will be made for all 3
Credit to jacksonmj for the original design of all of this, I copied it into my mod years ago
2019-11-28 00:22:17 -05:00
Tamás Bálint Misius
5c1ea5ef0d
Blacklist SPRK in PCLN's and PBCN's ctypeDraw function
...
Apparently it used to be blacklisted before ctype-drawing got redone.
2019-11-27 21:00:47 +01:00
jacob1
0078fb4c6f
Add DefaultProperties, replaces some of the case statements in create_part
...
The rest will will in a commit soon that adds the Create event and some other stuff
Lua events will come after that
PLSM default temp lowered to MAX_TEMP
2019-11-25 22:08:18 -05:00
Tamás Bálint Misius
5f7dd033ec
Revert previous change, add NewtonianGravity element property instead
2019-10-17 22:29:24 +02:00
Tamás Bálint Misius
6b85231f23
Incorporate Gravity property into calculation of acceleration due to newtonian gravity
2019-10-16 01:27:48 +02:00
jacob1
a50b172999
Fix clang 8 compile warnings
2019-10-04 00:21:10 -04:00
Tamás Bálint Misius
1cea59e521
Make sRGB the default colour space for deco tools, see 51e5f2b
2019-09-22 23:10:57 +02:00
Tamás Bálint Misius
742e030a13
Add gamma = 2.2 and 1.8 modes, see 51e5f2b
2019-09-21 22:16:52 +02:00
Tamás Bálint Misius
51e5f2bffa
Add option to make deco tools use sRGB colour space
...
Currently only affects the smudge tool. I'd have to look
into the others to decide if they need chaging. They probably
do though, they're not exactly intuitive.
I also fixed a bug with DropDowns where their popup would
show up in some random place if the parent window was a
ScrollPanel, and changed a few alignments here and there.
Notably, DropDowns now align the popup so that the currently
selected item is vertically centered and doesn't move when
the popup is opened.
2019-09-21 21:37:34 +02:00
Tamás Bálint Misius
0e237a1f4b
Remove unused variables from Simulation::FloodINST
...
These were left behind from before the CoordStack update.
2019-09-14 19:19:24 +02:00
Sebastián Mestre
da5f8068c0
Use CoordStack for INST Flooding ( #676 )
2019-09-07 19:56:23 -04:00
Tamás Bálint Misius
f22c27e977
Fix VS warning complaining about std::fill(float *, float *, int)
2019-09-04 14:52:38 +02:00
jacob1
6279bbeed3
Fix missing period in update notification, --no-fft compile fix
2019-08-29 22:49:16 -04:00
jacob1
b975dc2938
Make water equalization fill in areas slightly more naturally
2019-08-10 22:46:41 -04:00
jacob1
2e154e5ff9
Rewrite flood_water to use CoordStack and fix stack overflow, fixes #646
2019-08-10 22:38:44 -04:00
jacob1
0ec50951f7
LSNS: formatting changes, change if statements to switch
2019-08-10 17:22:46 -04:00
jacob1
ec0be1cdc9
Fix CELL size check when loading OPS saves
2019-08-05 00:22:37 -04:00
jacob1
e280fea031
arbitrary gravity code cleanup
...
Was working on modernizing the code in my mod, copied all the changes here too
2019-08-05 00:08:06 -04:00
Tamás Bálint Misius
89ef7ce216
Okay, it wasn't functionally equivalent (see 79f9a2d6
)
2019-08-01 16:54:28 +02:00
Tamás Bálint Misius
79f9a2d62d
Prioritise ctypeDraw functions over sparking
...
This adds an exception from brush-based sparking behaviour for
elements that have a ctypeDraw function. A functionally equivalent
exception has been removed in de1fc0f
, thus making it impossible to
ctype-draw SPRK on a few elements that otherwise aren't sparkable,
such as CONV.
2019-08-01 16:47:29 +02:00
jacob1
9327eecd7b
Update gravity mask even while paused
2019-07-31 22:28:02 -04:00
Tamás Bálint Misius
de1fc0f906
Revise ctype-drawing ( fixes #657 )
2019-07-27 19:12:05 +02:00
jacob1
9faf95a858
misc whitespace changes
2019-07-23 00:11:48 -04:00
Tamás Bálint Misius
23337862a4
Use current rendering modes when placing a save ( fixes #446 )
2019-07-22 10:38:13 +02:00
Tamás Bálint Misius
a407aba087
Make Simulation.IncludePressure pref node accessible from OptionsView
...
Also remove ugly and messy behaviour depending on whether
shift is being held while copying or stamping.
2019-07-10 00:35:49 +02:00
Cracker1000
b2adbb54db
Add .life serialization support to lsns ( #652 )
2019-06-25 20:57:43 +02:00
Tamás Bálint Misius
8671332e60
Fix transition properties not being validated
...
Also clean up some more of the Lua API code, again. Eww.
2019-06-02 17:49:21 +02:00
Tamás Bálint Misius
c193e88c28
Leave only the 'wants pressure' check in Simulation::Load for QRTZ/GLAS/TUNG
2019-05-07 21:15:41 +02:00
Tamás Bálint Misius
0179cefc78
Flatten include trees
2019-04-20 15:36:11 +02:00
Tamás Bálint Misius
e1d32c9352
Move notification out of block locking associated mutex in Gravity.cpp
...
I don't know how it ended up inside, I wanted it outside. For the record,
signalling the CV while the associated mutex is locked is a pessimisation,
it just yields predictable scheduling.
2019-04-17 09:50:41 +02:00
Tamás Bálint Misius
2e76b10619
Use C++11 threads
2019-04-17 00:23:57 +02:00
Tamás Bálint Misius
9d92b77163
Clean up sign-related code a bit
...
Also draw search signs with purple text and thread signs with red.
2019-04-12 17:09:34 +02:00
jacob1
76a92d75d2
Fix POLO eating PROT ID#0 no matter where it is
2019-04-09 22:11:14 -04:00
iczero
2ba0f70efd
Fix race condition in Gravity.cpp
2019-04-07 23:31:08 +02:00
Tamás Bálint Misius
79c5813ba3
Fix msvc compile error again
2019-04-02 19:53:11 +02:00
Tamás Bálint Misius
c8df51a8b3
Fix {ctype} sign macro displaying Empty for non-element ctypes
2019-04-02 19:50:01 +02:00
jacob1
58a3411255
Fix msvc compile error
2019-03-31 16:42:21 -04:00
Tamás Bálint Misius
c8960d1358
Add more sign macros ( fixes #578 )
2019-03-31 21:44:54 +02:00
Tamás Bálint Misius
3de92f5ef4
Fix pavg loading behaviour of QRTZ/GLAS/TUNG ( fixes #607 )
...
Those particles now save/load pavg if pressure is being saved/loaded.
This means they won't ever break again when being loaded as part of
a stamp.
They actually save pavg01 * 64 because pavg is saved as an integer and
these elements are too sensitive to pressure changes for integer pavg
values to be adequate.
2019-03-31 12:18:41 +02:00
Tamás Bálint Misius
47f898ca5a
Tweak replace mode and specific delete mode ( fixes #631 )
2019-03-30 23:59:20 +01:00
jacob1
2e17b848b1
Make element names a String (unicode support)
...
This won't be used by official elements, but mods or lua scripts could and do use unicode
2019-03-12 00:10:43 -04:00
jacob1
55e6074942
use override in all possible places
2019-03-09 21:07:32 -05:00
Tamás Bálint Misius
3a76a3a514
Turn RequestBroker::RetrieveThumbnail into a request derived from Download
...
Also start moving RenderThumbnail out of RequestBroker into its own Task. Add mutex to SaveRenderer to guard Render().
2019-03-07 22:56:08 -05:00
jacob1
28bfa9dfc9
GoL is now affected by stasis wall
2019-02-20 23:25:28 -05:00
wolfy1339
a2bb531c46
Remove inclusion of deprecated C++ headers
2019-01-31 20:09:15 -05:00
jacob1
e8b4256503
Fix gravity sometimes persisting a frame after ctrl+z / clearing sim, fixes #571
2019-01-14 21:11:06 -05:00
Caeleron
9e94abb150
Transfer properties of COAL breaking into BCOL ( Fixes #602 )
...
Fixing a problem where decoration is not transferred from COAL to BCOL when broken. All properties of COAL should now be copied to the new BCOL particle, including if it is burning, decoration and discoloration caused from heating.
2018-12-25 17:12:56 -05:00
jacob1
87fb94ce94
Delete unused Thumbnail handling code
2018-11-27 22:13:29 -05:00
jacob1
d0dd9ec22f
fix sim.brush being double size, fix compile warning
2018-11-21 12:38:26 -05:00
jacob1
b41f228c10
fix a few cases where the rng calls were converted improperly
2018-11-20 21:02:20 -05:00
jacob1
48bc6e02ba
Fix gcc 8 warnings
2018-11-03 19:36:07 -04:00
LBPHacker
5733073c33
Fix dray with tmp=0 acting weirdly
2018-10-30 21:28:57 -04:00
EchoHowardLam
813cab7af7
Hotfix endless air current
...
Fix issue #580
2018-10-30 21:04:52 -04:00
jacob1
f7e8ade347
fix another single-pixel PIPE generation issue
2018-09-30 23:46:52 -04:00
jacob1
7f215a6a17
fix particle #0 not being removed from the photons map when moving
2018-09-09 10:53:02 -04:00
jacob1
bbef295fe3
fix default elements disappearing when loading saves if the identifiers don't match
2018-08-24 23:10:46 -04:00
jacob1
d435f30834
fix LDTC temp/airdrag
2018-07-22 00:05:03 -04:00
krawthekrow
711d65bbd5
rewrite ldtc to be less buggy
2018-07-21 22:27:11 -04:00
jacob1
92244f78bb
initialize some variables to fix -Werror=maybe-uninitialized warnings
...
most aren't actually bugs, but gcc isn't able to determine that the paths it can follow guarantee they are initialized
2018-07-08 00:49:35 -04:00
LBPHacker
27f5ba199d
Fix PIPE being reversed
2018-06-24 10:37:19 -04:00
krawthekrow
11d33d5b77
call rayt linear detector
2018-06-24 10:37:11 -04:00
jacob1
36a545124e
fix setting element properties in legacy lua api
2018-05-13 16:16:14 -04:00
jacob1
8a8cbb81e4
fix getting/setting description in elements api
2018-05-10 00:27:55 -04:00
mniip
3781b36c31
Merge branch 'data'
2018-05-09 19:28:58 +03:00
mniip
32aaafee94
Move data into either cpp files or const arrays
2018-05-08 07:38:55 +03:00
jacob1
190107c1b2
fix CLNE
2018-05-08 00:01:34 -04:00
mniip
d404f4a538
Fix some C++14-isms.
...
Apparently C++11 is more strict regarding default argument and return
value conversions. Also return brace-initializer construction has had
little support.
2018-05-08 05:48:32 +03:00
jacob1
56cba4595c
Merge branch 'unicode'
2018-05-06 20:15:23 -04:00
jacob1
49703404be
change almost all the rest of the rng calls to .chance/.between
2018-05-05 11:56:17 -04:00
jacob1
ef2a0c2c81
fix single pixel pipe, remove ugly color bit hack
2018-05-03 21:40:48 -04:00
jacob1
44a8665f6f
update rng functions in a lot of element files to use .between/.chance
...
conversion is still very incomplete
2018-05-02 23:53:15 -04:00
mniip
6c9cb174fb
Change some uses of String::Stream to StringBuilder
2018-05-02 22:11:41 +03:00
mniip
a121c62c3b
Add some helper methods and rewrite some of the string manipulation code
2018-05-02 01:32:04 +03:00
mniip
833383b121
Move TPT's icons to the (real) Private Use Area of the unicode
2018-05-01 07:03:48 +03:00
mniip
ff27d69424
Switch from std::string to String/ByteString in most of the code
...
Also switch SimulationData from weird arrays to std::vector
2018-04-30 21:13:24 +03:00
jacob1
d2e0986bf6
fix occasional issue where deleting the particle RAYT is detecting would delete the particle it is sparking instead
...
only happened when unpaused and only if the spark was in a certain state. part_change_type was called with the wrong coordinates, which confused pmap and put the sparked particle on top of pmap in the detected particle for a frame
2018-04-29 00:48:53 -04:00
jacob1
67132c9925
fix another out of bounds crash relating to stasis wall
2018-04-28 11:45:16 -04:00
jacob1
be57130c7a
fix crash when particles are out of bounds
2018-04-28 00:27:03 -04:00
jacob1
777cb967a5
add M_PI definition back
2018-04-28 00:26:43 -04:00
jacob1
db8b32363e
remove tpt-math.h includes
2018-04-28 00:09:14 -04:00
jacob1
d56a4ee378
make RNG a singleton, update a few calls and start using between/chance functions
2018-04-28 00:01:08 -04:00