Commit Graph

1446 Commits

Author SHA1 Message Date
jacksonmj
418bdf0892 Add tmp2 support to old console 2012-04-27 17:42:22 +01:00
Simon Robertshaw
a75da2c4c3 Fix includes for OSX and BSD 2012-04-27 13:51:42 +01:00
savask
ffee9df8e6 It's hard to be a fool (fix for the fix) 2012-04-27 19:49:01 +07:00
savask
68ab2e3148 Gel won't move solids any more. 2012-04-27 19:36:08 +07:00
Simon Robertshaw
9e18556ae6 BSD platform, -DBSD 2012-04-26 13:16:20 +01:00
Simon Robertshaw
5a2a3e5c1f Fix "return 0;" in function returning void (create_box) 2012-04-25 17:59:14 +02:00
Simon Robertshaw
b5a52838c7 Change STOR, PIPE, DUST to make correct use of .flags field. 2012-04-19 16:37:53 +01:00
savask
f93a829672 Fix sponge bug. 2012-04-19 21:42:25 +07:00
Simon Robertshaw
62ecf1d87e Ensure TRON head doesn't fade 2012-04-18 16:06:43 +01:00
cracker64
c0947d9fea Should fix any border crashes 2012-04-18 11:57:27 -03:00
savask
64629df1af Fix the bug where you could set "bad" temp to insulators. 2012-04-18 16:50:24 +07:00
cracker64
d4a9f86503 Better description for tron 2012-04-17 19:54:45 -03:00
Simon Robertshaw
ffa5ccb666 Alterations to TRON and fancy effects 2012-04-17 22:38:27 +01:00
cracker64
eccf5658d2 TRON element, needs to glow and fancy explosion on crash 2012-04-17 15:55:58 -04:00
savask
ff8ce0ef3a A small fix for convection. 2012-04-17 21:28:42 +07:00
savask
c9bcc11d35 Viscosity change for gel. Water diffusion among sponge and gel (but with
flying cake effect)
2012-04-15 21:48:24 +07:00
savask
8523da398f Added gel - a liquid with variable heat conductivity and viscosity. 2012-04-15 17:56:55 +07:00
jacksonmj
7a844f51ff Fix crash when flood fill deleting life 2012-04-14 19:12:08 +01:00
savask
e4448dc1d6 No unmeltable ice anymore. 2012-04-14 17:30:57 +07:00
Simon Robertshaw
9f067224b8 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2012-04-13 15:36:05 +01:00
Simon Robertshaw
d601608623 'Report' icon at 0xE3 2012-04-13 15:35:49 +01:00
jacksonmj
a1bd20db91 Use graphics function for BCOL 2012-04-11 16:50:35 +01:00
jacksonmj
76f49dd024 Stop walls next to pipe triggering automatic pattern generation 2012-04-10 17:26:14 +01:00
savask
e52f730969 A fix for ice with ctype = 0. 2012-04-07 14:53:00 +07:00
Simon Robertshaw
2976936cfd Glowing BRAY 2012-04-05 23:17:24 +01:00
Simon Robertshaw
57d8335ca5 Allow DEST to be cloned with CLNE, PCLN, BCLN and PBCN. Add icon for Force elements, minor edits to Gas and Atomic element icons 2012-04-03 23:54:51 +01:00
savask
4b4830b5a4 REALISTIC - Latent heat. It may be buggy, and enthalpy table isn't
filled, but it works.
2012-04-01 00:27:01 +07:00
jacksonmj
57aa7b88f1 More brush fixes
Fixes a problem with the triangle brush caused by InCurrentBrush
calculating the bottom left or bottom right points to be outside the
triangle at certain brush sizes.

Also fixes some points in the brush outline being heated twice when a
line is drawn with the heat tool.
2012-03-30 16:32:51 +01:00
jacksonmj
19968dbaab Brush fixes
Heat tool was heating a vertical line in the middle of the brush twice.

When drawing a vertical line with the triangle brush, it was one pixel
too thin.
2012-03-29 11:02:10 +01:00
savask
00839a3b14 Fixed burning temp. for fire. 2012-03-27 18:39:36 +07:00
Jacob1
5a3faa0584 Fix ELEC being put into pmap instead of photons 2012-03-26 16:18:13 +01:00
Jacob1
2d1c5696a4 triangle brush fixes 2012-03-26 16:12:53 +01:00
jacksonmj
2c3a2e2519 Remove squares.h, since it doesn't seem to give any speed advantage over sqrtf 2012-03-26 16:09:58 +01:00
jacksonmj
156d50d903 Remove duplicate information in set_cmode
Calculating render_mode and display_mode variables from the arrays means
less chance of mistakes (e.g. blob mode RENDER_EFFE was set in
render_modes array but not in render_mode)
2012-03-26 16:03:27 +01:00
Simon Robertshaw
7f433013e0 Enable realistic heat and put a build info thingy into welcome screen 2012-03-23 10:41:29 +00:00
Simon Robertshaw
12270f1ef3 Fix Replacemode delete on Tools 2012-03-23 10:22:46 +00:00
Simon Robertshaw
6bd6c9772b Missing icon include 2012-03-23 00:12:51 +00:00
Simon Robertshaw
47ed75e99e Fix Linux icon variable declaration sitting inside a Windows Platform block 2012-03-23 00:03:03 +00:00
Simon Robertshaw
001c4502e8 Fix firework glow 2012-03-17 18:37:22 +00:00
Simon Robertshaw
4d45bbedb3 Fix glow for deut at ligh 2012-03-17 18:15:45 +00:00
Simon Robertshaw
9913e499fd Add icon again for Windows and Linux 2012-03-17 17:09:06 +00:00
Simon Robertshaw
5e30c0c668 No "min" and "max" in stdlib :( 2012-03-15 02:26:12 +00:00
Jacob1
bf5484ca63 newtonian gravity only put in HUD when on 2012-03-14 21:06:32 -04:00
Jacob1
51c8dfcef4 ngrav/amb. heat quickoptions, amb. heat drawn in heat display when on, fix render_ui position 2012-03-14 21:03:00 -04:00
Jacob1
a27d97124c wifi/portal lines 2012-03-14 20:44:17 -04:00
Jacob1
4fcfb05f25 fix 10000 compiler warnings, put nble.c in right spot, delete create_moving_solid 2012-03-14 20:43:53 -04:00
Jacob1
8ed861fb7e all wall types drawn in PSV and OPS formats 2012-03-14 20:07:21 -04:00
Jacob1
94b8ed193f Fix portals being ugly and PRTO effects not being random at first 2012-03-14 19:51:13 -04:00
Jacob1
96ec3486e8 Fix major update_particles_i bug, do_move was being called on nonexistant particles, causing kill_part to kill another particle 2012-03-14 19:46:56 -04:00
Jacob1
8db6230414 fusion step 3 2012-03-14 19:37:10 -04:00
Jacob1
803ded3b33 fusion step 2 + modify temp/pressure of step 1 2012-03-14 19:35:28 -04:00
Jacob1
83d4658589 prevent ionizing NBLE and burning H2 during fusion 2012-03-14 19:33:10 -04:00
Jacob1
446f773542 Fusion, step 1 2012-03-14 19:30:07 -04:00
Jacob1
4f176ba7c3 cursor changes to correct shape as soon as you click element/wall 2012-03-14 19:26:08 -04:00
Jacob1
0825324469 fix spark color in nothing display 2012-03-14 19:22:14 -04:00
Jacob1
dc688470a6 soap lines, create_parts fix, compiling fixes 2012-03-14 19:20:27 -04:00
Jacob1
d74e281003 change smudge tool + make it use alpha layer 2012-03-14 19:08:13 -04:00
Jacob1
afbe8cf38e Added smudge tool 2012-03-14 19:06:37 -04:00
Jacob1
0212099041 delete stamps when you delete stamps 2012-03-14 19:02:39 -04:00
Jacob1
134869d5e2 Fix rx = 0 crash 2012-03-14 18:58:52 -04:00
Jacob1
5a98d30a8f Make create_parts smaller/make cirlce code not repeat 3 times 2012-03-14 18:56:17 -04:00
Jacob1
75efca472c When creating a line, only fill in the first circle, and draw outlines the rest of the line 2012-03-14 18:52:24 -04:00
Jacob1
7742586639 large cursor size doesn't cause any lag at all 2012-03-14 18:51:31 -04:00
Jacob1
dea920680b Specific delete speed increase, delete useless(?) if statement 2012-03-14 18:50:29 -04:00
Jacob1
5f51cb3042 Way faster deleting 2012-03-14 18:49:57 -04:00
Jacob1
2f16a59998 Fixed triangle brush, but maybe I could keep it in as diamond brush 2012-03-14 18:49:24 -04:00
Jacob1
1cfcd25c36 Increase drawing speed 2012-03-14 18:49:19 -04:00
jacksonmj
b4a06df0b2 Remove 2 pixels per frame speed limit in detector wall 2012-03-14 21:57:47 +00:00
jacksonmj
f41af45620 Fix fighters not going through portals correctly 2012-03-13 18:27:47 +00:00
jacksonmj
e83a1a21ae Display decor in heat gradient view 2012-03-10 18:27:01 +00:00
savask
71acd578b6 (REALISTIC) Better air<->body heat conduction. Air density now
influences on it (things don't heat vacuum).
2012-03-09 23:45:36 +07:00
savask
290cac8b7e Volume from heat change (for REALISTIC) 2012-03-02 21:31:48 +07:00
jacksonmj
830629be3f Rotate/reflect particle, air, and fan velocities in transform_save 2012-02-29 22:25:50 +00:00
jacksonmj
d21c61aa52 Prevent ARAY passing through some non-conductive materials, and let normal ARAY pass through sparked INWR 2012-02-29 21:54:35 +00:00
savask
2b4d0442b5 Fixed the bug with fighters running away from stick mans, but now
boundary check is worser so fighters won't usually notice holes on
their way.
2012-02-28 19:35:59 +07:00
Simon Robertshaw
fe82685257 Old nothing display mode in the form of Basic colour mode 2012-02-25 22:29:43 +00:00
savask
f41f96f598 A new unstable REALISTIC option. No guarantees - but more realistic behaviour.
Better diffusion and heat transition.
2012-02-25 19:55:03 +07:00
Simon Robertshaw
f6696282e1 Added FRAY - Force-ray and RPEL - Repeller 2012-02-25 10:26:02 +00:00
Simon Robertshaw
1c4bce1f22 Lua methods for reading/writing the bmap and emap (no mapped walltypes yet 2012-02-20 12:02:52 +00:00
jacksonmj
3702438482 Prevent gaps in beams of photons from powered clone 2012-02-19 00:49:04 +00:00
jacksonmj
c960c29f72 Make DEUT compress when Newtonian gravity is applied to it 2012-02-18 23:46:08 +00:00
jacksonmj
e769f3feb8 Allow BRAY from PSCN to pass through sparked INWR
(it currently passes through INWR only when not sparked)
2012-02-16 21:39:29 +00:00
jacksonmj
9001508623 Draw pixels for the entire fire_alpha array
Makes fire glow look slightly less blocky
2012-02-16 21:28:43 +00:00
jacksonmj
3042b53e11 End sign movement when a save is loaded 2012-02-12 15:54:03 +00:00
Simon Robertshaw
54aa1ec42a Fix save reloading when saving to file 2012-02-11 12:38:06 +00:00
jacksonmj
91163c44ab Fix stationary photons being created by PCLN/PBCN 2012-02-11 02:18:09 +08:00
jacksonmj
ccb88b6b3b Prevent ambient heat going through walls
Still doesn't conserve energy, it might disappear when blown towards a wall,
but it will no longer go through the wall.
2012-02-05 22:45:30 +08:00
jacksonmj
06cb98f705 INSL blocks DLAY conduction, and raise DLAY temperature limit 2012-02-05 22:45:30 +08:00
jacksonmj
72a4358eee Make ARAY fire once per spark 2012-02-05 22:45:30 +08:00
jacksonmj
68ab3ca3ca More SPRK life checks for electronic elements
Check life>0, because SPRK changes back to its ctype when life==0. This
could result in SPRK being found/not found depending on particle order,
so pretend SPRK is not there if life==0 (it will disappear during the
current frame).
2012-02-05 22:45:30 +08:00
jacksonmj
1a5cd45eb8 Fix switch not activating completely while being sparked
Check life>=10 so that activation still spreads just after the switch has
been sparked. Copy other particle's life value instead of setting to 10
to avoid spark loops.
2012-02-05 22:45:30 +08:00
jacksonmj
24335704b5 Prevent particle creation when clicking in the menu area 2012-02-05 22:45:29 +08:00
jacksonmj
a722d7a396 Change wifi so that it always takes one frame to transmit 2012-02-05 22:45:29 +08:00
jacksonmj
6bdc05cc40 Separate loop for updating life, and add SPRK life checks to most electronics 2012-02-05 22:45:29 +08:00
Simon Robertshaw
0a2cf1b1c8 Stop printing crap from BRMT function 2012-01-29 18:00:30 +00:00
Jacob1
fff85989e1 stickmen load correctly and are drawn in new save format, and fighters are drawn correctly in both
Conflicts:

	src/save.c
2012-01-26 22:15:57 +08:00
jacksonmj
7593f01389 Fix deco colour in prerender_save to work with other pixel formats 2012-01-26 22:15:57 +08:00
Jacob1
35270d1e37 save tmp2, show decoration color on stamps 2012-01-26 22:15:57 +08:00
jacksonmj
eaf2af6d40 Another change to the eval_move check in create_part
Creating a particle where there was a wall but no existing particle was
broken, since eval_move returns 1 for moving into empty space.
2012-01-26 22:15:56 +08:00
Simon Robertshaw
01fe58e20e Retrieve thumbnails, saves and info from caching server (static.powdertoy.co.uk) 2012-01-26 14:05:56 +00:00
jacksonmj
38124c5f6f Fix crash when JSON parsing fails 2012-01-25 21:33:22 +08:00
jacksonmj
a9c198dd46 Fix WARP destroying DMND
If WARP moved in its update function, then the x/y variables in the main
loop were out of date. When the normal movement code ran, changes were
made to the wrong place in the pmap. This resulted in some particles
with low IDs being destroyed by the addition of WARP+SING.

This change might also fix the WARP+PRTI crash that I never managed to
reproduce.
2012-01-25 21:33:22 +08:00
jacksonmj
32c9ff3099 Make RBDM/WATR explosion work again, by not killing fire created by WATR 2012-01-25 21:33:22 +08:00
jacksonmj
748a528fe0 Only check the bits actually used for wavelength in photon ctype
Fixes black photons not being killed after passing through pipe
2012-01-25 21:33:22 +08:00
jacksonmj
f0730818e4 OPS thumbnail crash fix, and blank thumbnails for saves from a newer version 2012-01-25 21:33:22 +08:00
Jacob1
4af8385a0e If you cancel an update, the yellow update box stays away 2012-01-25 21:33:21 +08:00
jacksonmj
44545d4c96 Solids wall description, and check build_save was successful when saving a stamp 2012-01-25 21:33:21 +08:00
Jacob1
509f1d2139 ability to delete corrupted stamps 2012-01-25 21:33:21 +08:00
jacksonmj
8a11b6b31d Check coordinates of signs before using them to read pmap or pressure 2012-01-25 21:33:21 +08:00
jacksonmj
ff6aa0227d transform_save should check wall coordinates against size in blocks, not the actual size
Fixes crash when rotating a section of wall that is wider than YRES
2012-01-25 21:33:21 +08:00
jacksonmj
edcf6d7b2f Whoops, eval_move returning 1 should not allow particle creation 2012-01-25 21:33:20 +08:00
jacksonmj
bdf277e687 Implement PROP_NEUTABSORB 2012-01-25 21:33:20 +08:00
jacksonmj
16ea042bab Make transform_save work with new save functions
Conflicts:

	src/powder.c
2012-01-25 13:31:05 +00:00
Simon Robertshaw
15310d0165 Revert "transform_save should check wall coordinates against size in blocks, not the actual size"
This reverts commit 34c6043014.
2012-01-25 13:29:45 +00:00
jacksonmj
34c6043014 transform_save should check wall coordinates against size in blocks, not the actual size
Fixes crash when rotating a section of wall that is wider than YRES

Conflicts:

	src/save.c
2012-01-25 13:27:28 +00:00
Simon Robertshaw
a27074fc47 Revert "Some fixes for compiling with Visual Studio - void* and inline"
This reverts commit ea619f5542.
2012-01-25 13:26:10 +00:00
jacksonmj
ea619f5542 Some fixes for compiling with Visual Studio - void* and inline 2012-01-25 13:25:44 +00:00
jacksonmj
ff55050b9b Change variable declarations to make Visual Studio happy 2012-01-15 06:26:26 +08:00
jacksonmj
7f850ad049 Add 4 byte ctype saving to OPS, for PHOT colours 2012-01-05 08:46:12 +08:00
jacksonmj
56b45c982b eval_move in create_part if a particle already exists in the requested position
To allow Lua tpt.create to create photons in glass
2012-01-05 08:46:11 +08:00
jacksonmj
6bd8c4c3cd Fix zero length save crash, ignore sign tool walls, allocate parts starting at beginning of array
Allocating parts starting at end was making saves loaded from OPS files run slower, because
no particles could be skipped by using parts_lastActiveIndex.
2012-01-05 08:46:11 +08:00
Simon Robertshaw
8b88557047 Fix missing and incorrect bitshifts preventing the correct reading of life, tmp and dcolour 2012-01-02 14:04:42 +00:00
Simon Robertshaw
4741e7682a Save active menu 2012-01-02 13:59:28 +00:00
Simon Robertshaw
dc67615780 Air mode and Gravity mode on Simulation options, improvements to list box 2012-01-01 19:11:12 +00:00
Simon Robertshaw
0d8238fe8b Water equalisation in save 2012-01-01 18:32:07 +00:00
Simon Robertshaw
e41a3af8c5 BRMT + BREL = THRM at high temperatures 2012-01-01 16:32:02 +00:00
Simon Robertshaw
6fd4b2a80c prerender_save_OPS 2012-01-01 14:35:37 +00:00
Simon Robertshaw
b1aaa32116 16bit descriptor and variable temp field size, sign saving and reading 2011-12-31 18:57:42 +00:00
jacksonmj
8a2be10598 Store number of parts at each position instead of storing x/y coords
Also fix blockW/H calculation and PT_NUM check
2012-01-01 01:15:40 +08:00
jacksonmj
3da26ef96d Change LIGH and FIGH descriptions 2012-01-01 01:15:40 +08:00
Simon Robertshaw
b4b4a90f00 Almost finished new save format, just signs and thumbnail rendering needed 2011-12-30 19:48:11 +00:00
Simon Robertshaw
b617a264f2 Fix header include for case sensitive filesystems 2011-12-30 13:56:48 +00:00
Simon Robertshaw
d657dd2182 Make OPS optional (disabled by default) with define SAVE_OPS 2011-12-30 02:10:27 +00:00
Simon Robertshaw
5b21f4a66c Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2011-12-30 02:06:53 +00:00
Simon Robertshaw
86369670aa Add checks for prerender_save in save_filename_ui, pass vx, vy and pv air data into parse and build save methods. New save format: OPS, basic reading and writing complete, uses BSON, BSON.c/h (Binary JSON) implementation from MongoDB. (Is License OK?) 2011-12-30 02:06:31 +00:00
jacksonmj
f04577598b Fix creation of invalid wall tiles by sign tool 2011-12-29 06:39:59 +08:00
jacksonmj
2553dac942 Update can_move, recount menu items and clear graphics cache when tpt.el is changed 2011-12-29 06:39:59 +08:00
jacksonmj
23d6823bc3 Fix gravmap memset, and restrict_flt for temperatures 2011-12-29 06:39:59 +08:00
Simon Robertshaw
29b9859a00 Fix FPS in HUD in stable/nonbeta releases 2011-12-24 20:31:29 +00:00
Simon Robertshaw
835d9f1f3d Fix crash with clear_sim if gravity not initialised, fix renderer 2011-12-24 18:22:58 +00:00
Simon Robertshaw
fc7f872d8b Fix issue where heat transition would turn TNT to fire, TNT uses tmp for trigger state while Fire uses it for water vapourness. 2011-12-21 20:23:27 +00:00
Simon Robertshaw
a716c59610 Added some heat to TNT and IGNC 2011-12-21 17:39:53 +00:00
Simon Robertshaw
fcac7dbe09 Support for element names and hex constants for the PROP tool 2011-12-21 16:47:46 +00:00
Simon Robertshaw
b1532d6433 Fix legacy grav_diff not being updated correctly 2011-12-20 01:07:46 +00:00
Simon Robertshaw
b4b1086026 Gravity.c - Include sys\types.h to resolve issues with some mingw/pthreads configurations 2011-12-19 22:52:04 +00:00
Simon Robertshaw
810adc81fe Use reduced resolution gravity maps for improved performance 2011-12-19 21:35:40 +00:00
Simon Robertshaw
a523dcab79 Attempt to speed up tpt.parts without using billions of memory 2011-12-19 17:03:42 +00:00
Simon Robertshaw
5e0bec261c CLST+NITR = TNT, Use ARAY to clear large arrays of STOR 2011-12-19 15:21:27 +00:00
Simon Robertshaw
d6953be3a8 New element: Ignition cord 2011-12-19 14:29:01 +00:00
Simon Robertshaw
9d73a5f5bf Revert "Directly read/write element type properties"
This reverts commit 0da91a783f.
2011-12-19 12:43:28 +00:00