Commit Graph

1427 Commits

Author SHA1 Message Date
Simon Robertshaw
d7fa0b139e New element: Titanium, absorbs some neutrons, acts as a solid wall to air. Move blockair filling into update_particles so it can be used by elements 2012-05-11 21:02:58 +01:00
jacksonmj
de6203e049 Fix TNT not exploding if multiple TNT particles are in the same place
flood_prop only changes the tmp value of one TNT particle at each
coordinate. So some TNT particles can retain tmp=1 and keep running
flood_prop, stopping the TNT from exploding.
2012-05-11 20:40:08 +01:00
Simon Robertshaw
befd4f5ef5 Remove silly copypasta from GPMP, causing gravity to depend on air pressure 2012-05-11 18:11:05 +01:00
Simon Robertshaw
835d6bbfb9 Fix for PUMP 2012-05-11 17:58:25 +01:00
Simon Robertshaw
0c8fae82c7 Base changes to HTTP.c on correct file version 2012-05-09 21:12:10 +01:00
Simon Robertshaw
aeb383742f Use CRLF instead of just LF for headers in GET requests 2012-05-09 21:07:17 +01:00
jacksonmj
1c5381662d Limit gel tmp value 2012-05-07 23:50:13 +01:00
jacksonmj
11bd67eb61 Change pipe and portal to check element type using properties instead of falldown and state 2012-05-07 14:09:14 +01:00
Aditya Vaidya
f69920b96c Added GPLv3+ license headers to all files in src/elements/ 2012-05-06 12:55:05 +01:00
atlaua
1f01122517 Remove <version.h> include
The last commit removed the empty includes/version.h. But as src/main.c
still refers to it, that causes the build to fail.

Fixes commit a1aeabe
2012-05-06 12:47:34 +02:00
jacksonmj
a1aeabeee4 Change license from GPLv2+ to GPLv3+
Also add headers stating the license to some more of the source files
2012-05-06 02:20:57 +01:00
jacksonmj
028eb4d9a5 Fix repeated download of same history thumbnail
https://github.com/FacialTurd/The-Powder-Toy/issues/53
2012-05-03 22:06:30 +01:00
Simon Robertshaw
429f106ebf Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2012-05-03 21:53:16 +01:00
Simon Robertshaw
89911666f0 Remove stupid debug output for thumbnail cache, no idea why I have not removed this earlier 2012-05-03 21:52:59 +01:00
jacksonmj
d0b57d7d99 Fix crash when pasting text on platforms which don't support it 2012-05-01 00:48:17 +01:00
Simon Robertshaw
acf2515115 Oops, correct include AGAIN 2012-04-30 23:12:01 +01:00
Simon Robertshaw
df3e358918 Correct header include in SDLmain.m 2012-04-30 23:04:00 +01:00
Simon Robertshaw
322da62dfa Woo, file opening for OS X 2012-04-30 22:42:07 +01:00
Simon Robertshaw
211770e818 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2012-04-30 21:49:40 +01:00
Simon Robertshaw
8397b6e51a Add PROP_NOAMBHEAT to prevent certain elements from being heated by Ambient heat, Add PROP_NOAMBHEAT to FILT to fix http://powdertoy.co.uk/Discussions/Thread/View.html?Thread=13579 2012-04-30 21:49:33 +01:00
jacksonmj
433c1881bc strncpy for loading sign text in OPS 2012-04-30 14:36:45 +01:00
jacksonmj
8872e33b44 Massive cleanup of sdl_scale, and fix moving a sign in the zoom window 2012-04-30 00:39:12 +01:00
savask
74979102b3 One gel particle can't absorb more than 100 water particles now. 2012-04-30 00:40:05 +07:00
jacksonmj
6717f4ff32 Save soap bubbles 2012-04-29 15:31:18 +01:00
jacksonmj
d7f798da60 Fix bounds checking for SING and make explosion pressure area smaller
Making the area smaller means a bit less pressure is generated, but it
does stop the pressure going through walls
2012-04-29 01:37:52 +01:00
jacksonmj
38057065c2 Fix bugs when moving signs
Signs could not be repositioned on top of another sign (dependent on
the indices of the two signs), and could not be placed after selecting
an element from the menu.
2012-04-29 00:39:18 +01:00
jacksonmj
34bfd77aa5 Line snapping for deco editor 2012-04-29 00:22:02 +01:00
jacksonmj
ade3fd9568 Delete signs when cutting; change sign location check when saving
Save signs within the original box that was drawn by the user, not
within the box that has been expanded to match the wall grid
2012-04-29 00:11:54 +01:00
jacksonmj
5d5b8143a4 OPS loading: don't replace existing particles twice, and clear soap ctype 2012-04-27 18:28:39 +01:00
jacksonmj
6101c04ff9 Use an array instead of ctype to cache tron colour 2012-04-27 18:09:54 +01:00
jacksonmj
c8a1524d6b Save tmp2 for tron 2012-04-27 17:46:40 +01:00
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