Commit Graph

4114 Commits

Author SHA1 Message Date
jacksonmj
236ff08da9 Fix some problems noted in http://www.viva64.com/en/b/0298/
I've left some of the less important items, like SearchView.cpp "'then' statement is equivalent to the 'else' statement", and RequestBroker::Request::~Request, because I don't feel like spending a few days entirely rewriting those files at the moment (which is what I'd end up doing if I started fixing minor problems and refactoring...)

GameSave::readOPS - not changed. At some point we may have to move to a larger type for element IDs (probably two or four bytes), but PT_NUM isn't likely to be raised to the maximum value of that type immediately, so this check will be needed then. There should be an elements[partsData[i]].Enabled check in there too, but it might be a bit difficult - I'm not sure how to access a Simulation object from GameSave::readOPS...

Notes on changes:

Graphics::textsize, Element_FRZW::Element_FRZW - typos

Button::Draw - the extra case was originally used to invert the icon (draw it in black instead of in white) when the button was clicked. However, the icon colour is now automatically set depending on the background colour. (Note similar conditions "if(Enabled) { if(isButtonDown || (isTogglable && toggle)) " near the start of the function - same logic but in a different place, setting icon colour indirectly).

Simulation::transform_save - unused redundant function, everything uses GameSave::Transform which does much the same thing.

PreviewView::NotifySaveChanged - should be height==YRES/2, it's checking whether the preview image is the correct size, and resizing it if it isn't.

Element_FWRK::update - no idea why that line was there, even though it was my commit that originally added it...
2014-12-25 17:09:35 +00:00
jacksonmj
3ea2d8013d Correct page count in save browser 2014-12-22 01:33:55 +00:00
jacob1
3b09c4bdbc change tooltips for the save upload button to make it more clear 2014-12-18 19:54:48 -05:00
jacob1
0f583f3bd8 fix PLSM spawning in fusion (allow some stacking), GRVT in O2 fusion 2014-12-15 15:52:08 -05:00
jacob1
35782fdd10 'l' always loads last save from disk (won't load cached deleted save) 2014-12-15 15:13:37 -05:00
cracker64
6410171bd5 Fix IRON rust
Fix some randoms
2014-12-06 16:23:45 -05:00
cracker64
a115e78952 More element optimizations!
ACEL, changed a range check
DRAY, Fixed repetitive checking
GOLD, less rand()
PLNT, removed range checks, less rand()
PROT, used a switch()
VIBR, less rand()
VINE, less rand(), fixed growing along WOOD
VIRS, less rand()
2014-12-06 15:43:11 -05:00
cracker64
783b2c1736 Stop PIPE graphics from creating a particle every frame.
Remove temperature setting, this feature is beyond useless now, PROP+Lua are better ways to manually set pipe.
2014-12-06 01:16:04 -05:00
jacob1
9fdcc28dac make close icon match the color of the button/text around it 2014-12-04 18:17:44 -05:00
jacksonmj
e25fac5037 Less layering of particles in fusion
Fixes http://tpt.io/~1683916 - PLSM was created on top of DMND, which other particles then displaced, leading to lots of stacking and particles escaping through the DMND.
2014-11-30 17:22:56 +00:00
jacob1
70a815a8c7 fix crash when PIPE finds PRTI with an invalid channel 2014-11-29 00:30:05 -05:00
jacob1
6da5b08fd2 fix for fast particles moving through VOID 2014-11-22 13:04:04 -05:00
jacob1
aa8fe86735 fix DEUT graphics (accidentally changed something) 2014-11-21 16:40:46 -05:00
jacob1
16ce3a68c0 more jacksonmj suggestions: save edgeMode in saves, BVBR absorption fix, life saving fix, DEUT graphics change, PROT fix, SOAP graphics fix 2014-11-21 15:41:22 -05:00
jacob1
e20f6b101b jacksonmj: "Allow ELEC to pass through GLOW, fixes ELEC->PHOT reaction in GLOW." f162984e22e5 + some parts of "Misc small fixes" 95cf5bd67c2b 2014-11-21 15:41:22 -05:00
jacob1
a182e925fe some elementpallete fixes + fix SPAWN2 ToolButton 2014-11-20 22:44:02 -05:00
jacob1
6ce2d5fe92 #define MAX_FIGHTERS + some fixes 2014-11-20 22:11:20 -05:00
jacob1
c9cc2a1a6b more accurate elementCount (part_change_type, pasting stamps, lua), prevent having multiple STKM / SPWN even more 2014-11-20 21:51:45 -05:00
jacob1
6066ae8341 prevent having multiple stickmen on the screen, also add playerst.spawnID 2014-11-20 18:51:33 -05:00
jacob1
8233b28820 Change GRVT flammability to 0 2014-11-19 22:49:20 -05:00
jacob1
c673f30e14 fixes suggested by jacksonmj in -dev
fixes bugs in DMG, LIGH, PHOT, and QRTZ, also makes deut explosions less laggy when they hit the particle limit
2014-11-14 12:48:06 -05:00
jacob1
1289465a2c update stamps.def when deleting stamps, missing stamps show up as "error loading save" and can be deleted 2014-11-11 23:48:36 -05:00
jacob1
cd9fa0c85a Textbox in the stamp browser also 2014-11-11 19:38:29 -05:00
jacob1
efaa32363f page textbox in browser (go to any page)
also fix page count (add one for front page), and make page count invisible until the saves actually load
2014-11-11 17:25:50 -05:00
jacksonmj
b3b852249b Deco off (except black deco) for LCRY in save thumbnails 2014-11-09 21:33:08 +00:00
jacksonmj
beff8e73ba Fix renderer compiling 2014-11-09 21:32:06 +00:00
jacob1
a31f4df0a1 fix being unable to draw METL/PSCN/INST ctype on CRAY 2014-11-07 12:28:49 -05:00
jacob1
46eda12479 lua logs fade out individually 2014-11-06 20:24:42 -05:00
jacob1
a801f0a0b4 allow lua mousepress event to cancel drawing, fixes #229 2014-11-06 20:06:45 -05:00
jacob1
5bb1d484d0 fix crash when taking screenshot, fixes #193 2014-11-05 20:40:09 -05:00
jacksonmj
1eeed277a0 Fix initialisation of transitionOccurred 2014-11-06 00:46:15 +00:00
jacksonmj
829e2cca7d Flatter surface when liquids solidify 2014-11-06 00:32:25 +00:00
jacob1
43bab359db fixes to ELEC (missed from 6dc7eaf43e), FUSE (changed in 27e3e12518), and IRON (changed in 0d70547cf0) 2014-11-05 19:15:57 -05:00
jacksonmj
66a530f5a3 FRZZ and FRZW changes/fixes
Fix FRZW low temperature transition (accidentally turned into a high temperature transition in b661418d).
FRZZ now melts into FRZW, so that single pixels "form ice that always cools" as in FRZZ description.
ICE update function: was meant to be checking not setting parts[i].ctype. However, turning FRZZ into self-cooling ice seems a logical thing to do, so set ctype of parts[r>>8].ctype, and make all types of ice cause this reaction (not just ICE(FRZW) as was apparently the original intention of the ctype check).
2014-11-05 23:38:22 +00:00
jacksonmj
9e7ead9bcc Change melting point for snow with wrong ctype back to 273.15 2014-11-05 23:32:49 +00:00
jacksonmj
fb796c873b PSTN: allow movement amount to be set by temperature. Requires major version increment. 2014-11-04 15:38:41 +00:00
jacksonmj
57409b0b41 Change order in which particles are created by the rectangle and brush tools
to make liquid movement look less weird in normal gravity
2014-11-01 15:38:39 +00:00
jacob1
377a99294f this should allow you to place the zoom window while selecting an area to stamp 2014-10-31 14:09:02 -04:00
jacob1
5654425637 placing zoom window cancels shift-lines 2014-10-31 12:47:37 -04:00
jacksonmj
02e1969ef2 Fix SNOW(WATR) melting temperature
Broken by fixing SNOW(SLTW) melting temperature in a78bd78bfc
2014-10-31 16:39:30 +00:00
jacob1
2fc1dcbe29 fix bug with placing zoom window while saving a stamp 2014-10-31 12:17:33 -04:00
jacob1
c7bb60559e generator.py warns when two elements have the same ID 2014-10-31 01:24:26 -04:00
jacksonmj
f7b53d0231 Prevent fast particles from skipping over DESTROYALL wall 2014-10-27 17:50:58 +00:00
jacob1
ca0eecee80 pavg0 / pavg1 properties can be set through the console and prop 2014-10-26 18:11:46 -04:00
jacob1
7582acfb5c add sim.photons (like sim.pmap but for photons), sim.(part)neighbors also checks photons, fix sim.gravMap 2014-10-26 16:52:42 -04:00
jacob1
12f00db240 loop edge mode from my mod (also works with stickmen) 2014-10-24 00:18:51 -04:00
jacob1
6463d04f6c fix a few of the most spammy warnings (there are still hundreds of warnings though)
TODO: actually fix all the warnings
2014-10-23 00:42:13 -04:00
jacob1
16522056fb fix bug where !set arguments would be cast to float then back to int 2014-10-08 00:35:50 -04:00
jacob1
c16caed5dd fix level 1 msvc compiling warnings + initialize debugFlags 2014-10-08 00:15:51 -04:00
jacksonmj
a78bd78bfc Fix SNOW(SLTW) melting temperature, and change ACID hardness value to make more sense on the wiki 2014-10-06 12:57:32 +01:00