Commit Graph

1819 Commits

Author SHA1 Message Date
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
chaos.powdertoy.co.uk
161452783b Version Increment 2012-02-05 14:47:56 +00: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
a4ad6ee428 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2012-01-31 12:35:31 +00:00
Simon Robertshaw
a6b03ddfd6 Font editor makefile for Windows 2012-01-31 12:35:18 +00:00
chaos.powdertoy.co.uk
125f40496f Version Increment 2012-01-29 18:04:33 +00:00
Simon Robertshaw
d11039fb36 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2012-01-29 18:00:49 +00:00
Simon Robertshaw
0a2cf1b1c8 Stop printing crap from BRMT function 2012-01-29 18:00:30 +00:00
chaos.powdertoy.co.uk
f19e57e35c Version Increment 2012-01-26 14:17:26 +00:00
Simon Robertshaw
22acb277c0 Save PSv for now 2012-01-26 14:16:59 +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
chaos.powdertoy.co.uk
ed2132b7d8 Version Increment 2012-01-26 14:08:05 +00:00
Simon Robertshaw
01fe58e20e Retrieve thumbnails, saves and info from caching server (static.powdertoy.co.uk) 2012-01-26 14:05:56 +00:00
chaos.powdertoy.co.uk
5b527e7a9d Version Increment 2012-01-25 13:37:47 +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
dcac550ef4 Compiler flag for gravity.c, to fix FFTW crash due to misaligned stack on Windows 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