summaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-17Remove old codeSimon Robertshaw1-2881/+0
2012-08-13Fix cut message, stamps/copying can be done backwards, fix xor_rectjacob11-22/+51
(amended to remove extra argument to build_save)
2012-08-13fix many crashes when out of memoryjacob11-4/+8
2012-08-13Powered pipe, based on jacob1's commitsjacksonmj1-2/+2
PSCN to turn on, NSCN to turn off, INST to reverse. Differences from jacob1's commit include: flood fill function that includes 1px diagonal pipes, powered/reversed state stored in tmp instead of flags, sparks from PSCN/NSCN/INST always take effect the following frame, single pixel pipe directions are a number from 0 to 7 so "if(coords)" does not check whether one is set (store another "transfers according to 1px pipe direction" bit for reverse flow).
2012-08-09right click reload button to go back to open_ui, reload button disappears ↵jacob11-1/+6
when clear button used (amended since TPT doesn't have the instant_open argument to open_ui)
2012-08-09ctrl+w for gravity cycle with stkm2Jacob11-1/+1
2012-08-09Reset emp flash when the save is cleared/loadedjacob11-0/+1
2012-08-02Keep zoom window open when undoingjacksonmj1-1/+1
2012-08-02Remove intro text when using ptsave: handlerSimon Robertshaw1-4/+1
2012-08-02move some key stuff out of sdl_poll, zoom won't be triggered even when ↵jacob11-19/+36
disabled by lua now Conflicts: src/interface.c src/main.c
2012-08-01Disable decorations by defaultSimon Robertshaw1-0/+1
2012-07-09Add ptypes.enabled checks to a few more placesjacksonmj1-3/+3
2012-07-08Optimization for GoL, Added brush size and mouse wheel to lua!cracker641-7/+11
2012-06-29Ensure any clicks on stacked save link signs only open the first found sign.Simon Robertshaw1-0/+1
2012-06-09Run stacking check less oftenjacksonmj1-0/+2
But force it to be run after loading a save so that really extreme numbers of stacked particles form BHOL immediately
2012-06-08Fix session check on startup - Session check was looking at the response ↵Simon Robertshaw1-1/+1
code from the version check, should the session check request complete before the version check, the response code would not be valid and the response would be discarded.
2012-06-01Deferred loading of save filesSimon Robertshaw1-21/+40
2012-06-01Fix command line save opening (save was being cleared immediately after loading)jacksonmj1-24/+20
2012-05-31Added a settings option to draw a wall frame around screen.Savely Skresanov1-1/+5
2012-05-24Fix bug that causes ptsave URL parsing to fail if there is no '#'Simon Robertshaw1-1/+0
2012-05-24Merge pull request #66 from jacob1/ModstuffSimon Robertshaw1-89/+29
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-24Element search interface by pressing 'e'Simon Robertshaw1-0/+4
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-24fix crash, spark reset set type without checking if it was a valid number. ↵Jacob11-2/+7
Also disable another way to create invalid elements
2012-05-24fix alt select being off by one every time, turn on deco before entering the ↵Jacob11-2/+1
deco editor (not after)
2012-05-24small o2 fusion change, add my name to contibuters (it is ok for me to do ↵Jacob11-1/+1
that, right?)
2012-05-24console doesn't enable hud, fast heat for PUMP/GPMP/ANIM, GPMP activated at drawJacob11-4/+1
2012-05-23fix emp flash, better live parts rendering in (render_ui &) deco editorJacob11-78/+17
2012-05-23fix compilingJacob11-2/+2
2012-05-23ptsave protocolSimon Robertshaw1-6/+63
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-17Spellingjacksonmj1-1/+1
("gases" seems to be the more popular version of the plural noun)
2012-05-13URI handling for MacOSSimon Robertshaw1-1/+28
2012-05-12Fancy motion blur for OpenGL, fix a lot of dialogues in OpenGL, fix gravity ↵Simon Robertshaw1-1/+1
lensing in OpenGL, ensure Phot and Neut are PMODE_ADD, not FLAT
2012-05-06Remove <version.h> includeatlaua1-1/+0
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-06Change license from GPLv2+ to GPLv3+jacksonmj1-3/+2
Also add headers stating the license to some more of the source files
2012-04-29Massive cleanup of sdl_scale, and fix moving a sign in the zoom windowjacksonmj1-56/+44
2012-04-28Fix bugs when moving signsjacksonmj1-1/+1
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-27Use an array instead of ctype to cache tron colourjacksonmj1-0/+2
2012-03-23Enable realistic heat and put a build info thingy into welcome screenSimon Robertshaw1-1/+36
2012-03-15newtonian gravity only put in HUD when onJacob11-1/+4
2012-03-15ngrav/amb. heat quickoptions, amb. heat drawn in heat display when on, fix ↵Jacob11-1/+1
render_ui position
2012-03-14cursor changes to correct shape as soon as you click element/wallJacob11-1/+1
2012-03-14soap lines, create_parts fix, compiling fixesJacob11-2/+2
2012-03-14delete stamps when you delete stampsJacob11-0/+6
2012-02-12End sign movement when a save is loadedjacksonmj1-0/+1
2012-02-05Prevent particle creation when clicking in the menu areajacksonmj1-1/+1
2012-01-25If you cancel an update, the yellow update box stays awayJacob11-0/+3
2012-01-25Solids wall description, and check build_save was successful when saving a stampjacksonmj1-0/+2
2011-12-30Merge branch 'master' of github.com:FacialTurd/The-Powder-ToySimon Robertshaw1-3/+2
2011-12-30Add checks for prerender_save in save_filename_ui, pass vx, vy and pv air ↵Simon Robertshaw1-859/+8
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-28Fix creation of invalid wall tiles by sign tooljacksonmj1-2/+1