Commit Graph

1525 Commits

Author SHA1 Message Date
jacksonmj
10e553be03 Fix PROP_NEUTPENETRATE, particles weren't being moved into empty space 2012-05-30 22:07:57 +01:00
Savely Skresanov
58620a9529 Fixed the bug with snow, where it melted without taking it's ctype into
account.
2012-05-30 17:25:37 +07:00
Savely Skresanov
274a7fe582 No rounding errors with triangle brush, so no need for epsilon (I hope). 2012-05-28 21:20:21 +07:00
jacksonmj
b6d813a54d Fix SLTW boiling temperature typo 2012-05-27 01:31:23 +01:00
jacksonmj
ebda0f9b4d Don't show disabled elements in element search 2012-05-26 22:24:02 +01:00
Savely Skresanov
ab8eeb6dd9 Soap bubbles are easily formed now. Also they inherit soap's
decoration color.
2012-05-26 19:01:14 +07:00
Simon Robertshaw
fd868032fe Download progress bar for save opening 2012-05-24 21:31:04 +01:00
Simon Robertshaw
7e681ffce1 Fix bug that causes ptsave URL parsing to fail if there is no '#' 2012-05-24 20:38:02 +01:00
Simon Robertshaw
2f145e8188 Add DISPLAY_EFFE back after it was removed by 0799c2e09d 2012-05-24 20:01:07 +01:00
Jacob1
4da9a26502 remove lastx/lasty variables when OGLR is disabled
Conflicts:

	src/graphics.c
2012-05-24 19:57:29 +01:00
Simon Robertshaw
8196d2a645 Merge pull request #66 from jacob1/Modstuff
Code structure improvements for graphics/drawing, improvements to prevent accidental infinite loops in Lua, Fixes for fusion, improvements for VOID types. And other minor improvements
2012-05-24 11:53:50 -07:00
Simon Robertshaw
5a117c2d27 Element search interface by pressing 'e'
First search is for element names, second search looks at the
description, pressing enter will give you the first result the the left
button selection, left click and right click can also be used to select.
2012-05-24 19:38:58 +01:00
Jacob1
1fb7787243 VOID & PVOD can be set to only eat/not eat certain things 2012-05-24 14:07:31 -04:00
Jacob1
9a179651ee energy type particles automatically go into photons, not pmap 2012-05-24 13:13:28 -04:00
Jacob1
bdc94208d2 finish custom lua graphics functions 2012-05-24 13:09:32 -04:00
Jacob1
5edd224344 custom graphics functions with lua (not finished yet) 2012-05-24 13:08:55 -04:00
Jacob1
f49f4ea241 fix crash, spark reset set type without checking if it was a valid number. Also disable another way to create invalid elements 2012-05-24 12:42:19 -04:00
Jacob1
4368ded197 Fix lua console compiling with visual studio (I thought this was fixed already) 2012-05-24 11:57:05 -04:00
Jacob1
82b60ba5ca fix lua console freeze/bugs 2012-05-24 11:26:25 -04:00
Jacob1
e95bcb6fcc fix alt select being off by one every time, turn on deco before entering the deco editor (not after) 2012-05-24 11:13:10 -04:00
Jacob1
e4686724ac limit amount of ELEC produced to prevent infinite reactions 2012-05-24 11:02:42 -04:00
Jacob1
e79d18c58c small o2 fusion change, add my name to contibuters (it is ok for me to do that, right?) 2012-05-24 11:01:30 -04:00
Jacob1
3959db4c38 console doesn't enable hud, fast heat for PUMP/GPMP/ANIM, GPMP activated at draw 2012-05-24 10:51:21 -04:00
Jacob1
1c7fdb0c26 oxygen fusion, fix two small bugs 2012-05-24 10:37:19 -04:00
Jacob1
be2fe943c0 Prevent accidental infinite loops in lua
Also fix glitch when step_functions[0] is unregistered but others aren't
2012-05-23 20:08:53 -04:00
Jacob1
1026963293 fusion changes 2012-05-23 19:53:50 -04:00
Jacob1
0799c2e09d fix emp flash, better live parts rendering in (render_ui &) deco editor 2012-05-23 19:45:16 -04:00
Jacob1
2656bcec2b fix compiling 2012-05-23 18:54:25 -04:00
Simon Robertshaw
a1b7b02f81 Windows installation, register ptsave URL protocol 2012-05-23 18:37:11 +01:00
Simon Robertshaw
4771b91d51 ptsave protocol
ptsave:<id>#<name>~<username>, only ID is read, it must be the last
argument (all arguments after ptsave are ignored for safety reason to
prevent injecting other arguments links.
2012-05-23 18:18:10 +01:00
Savely Skresanov
393d247312 Check for version before enabling movable flag for sponge. 2012-05-23 22:21:36 +07:00
Savely Skresanov
d0a1b14409 Fix the bug with stickman standing on the screen edge. 2012-05-23 20:47:38 +07:00
Savely Skresanov
0cf636ad24 Fix the bug where gel didn't transfer water from sponge. 2012-05-23 10:19:54 +07:00
cracker64
c5b9b8d28a Make tron follow TRON_NOGROW , thought that was in there.... (github edit because cate is annoying me) 2012-05-22 23:26:28 -03:00
jacksonmj
0fb6b85706 Update gravity mask when loading OPS saves 2012-05-21 00:15:51 +01:00
jacksonmj
eb0b2f9ca3 Fix infinite loop when trying to detach soap with extra ctype bits set 2012-05-20 23:22:47 +01:00
jacksonmj
089ea8b7a0 Change order of bomb loops - delete particles before creating sparks
Fixes pressurised INVS being immune to bomb, as the sparks were being
deleted instead of the INVS.
2012-05-20 23:22:37 +01:00
jacksonmj
a11202313d New flood_parts function, should fix crashing due to too much recursion 2012-05-17 21:56:21 +01:00
jacksonmj
9a30a580d2 Spelling
("gases" seems to be the more popular version of the plural noun)
2012-05-17 21:56:20 +01:00
Savely Skresanov
66b946d5c6 Move SDL_GetVideoInfo before SDL_SetVideoMode so it will probably fix
sizing issues for people.
2012-05-16 21:46:36 +07:00
Simon Robertshaw
17229ead05 URI handling for MacOS 2012-05-13 13:01:29 +01:00
jacksonmj
58ea2b2acf Make TTAN block pressure when framestepping 2012-05-12 17:07:52 +01:00
jacksonmj
137903f809 Fix crash after closing display options (vid_buf was being freed) 2012-05-12 13:04:09 +01:00
jacksonmj
9f0cb4857e Don't hide stickman when energy particles pass through his head 2012-05-12 13:00:29 +01:00
Savely Skresanov
da6d5b348a Added a GUI error box for window resizing failure. 2012-05-12 18:45:26 +07:00
savask
9b8e0280eb Check screen resolution before scaling game window. 2012-05-12 18:05:22 +07:00
Simon Robertshaw
81f84c4678 Allow TTAN to conduct more than once 2012-05-12 03:27:45 +01:00
Simon Robertshaw
d69fc052fa Fancy motion blur for OpenGL, fix a lot of dialogues in OpenGL, fix gravity lensing in OpenGL, ensure Phot and Neut are PMODE_ADD, not FLAT 2012-05-12 01:35:55 +01:00
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
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