summaryrefslogtreecommitdiff
path: root/src/powder.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-17Remove old codeSimon Robertshaw1-3751/+0
2012-09-02Change air tools to only act inside the brush, not in surrounding cells as welljacksonmj1-18/+2
2012-09-02DTEC, generates a spark when something with it's ctype is nearbyjacob11-6/+15
2012-08-13Fix cut message, stamps/copying can be done backwards, fix xor_rectjacob11-0/+2
(amended to remove extra argument to build_save)
2012-08-13Powered pipe, based on jacob1's commitsjacksonmj1-1/+16
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-09fix energy particles going in pipejacob11-1/+1
2012-08-09photon heating/coolingjacob11-6/+9
2012-08-02Consistent proportions of WATR and SALT in SLTWjacksonmj1-2/+2
1 SALT + 3 WATR = 4 SLTW
2012-07-08Optimization for GoL, Added brush size and mouse wheel to lua!cracker641-12/+12
2012-06-28Prevent STKM falling through activated PVOD with a ctype that isn't STKMjacksonmj1-5/+18
2012-06-26Lightning direction affected by Newtonian gravityjacksonmj1-18/+21
2012-06-26Allow INST to be sparked directly with the brushjacksonmj1-0/+5
2012-06-26Fix infinite loop when flood_INST finds some INST with a non zero life valuejacksonmj1-9/+29
Also fix memory leaks when flood fill functions return early.
2012-06-22fix compression during fusionJacob11-1/+1
Conflicts: src/powder.c
2012-06-22Reset particle flags in create_partjacksonmj1-0/+1
2012-06-22Allow stickman head to go through everythingjacksonmj1-1/+25
2012-06-22Prevent STKM floating in gasesjacksonmj1-1/+1
2012-06-21Gravity modes and Newtonian gravity for fireworksjacksonmj1-0/+22
Resolves issue #59
2012-06-20Use eval_move(PT_FIGH, ...) when fighters are checking for obstaclesjacksonmj1-2/+2
Also stop fighters being included in the stacking check
2012-06-20Replace all explosion sparks with new element (EMBR)jacksonmj1-4/+5
Replaces: BOMB sparks and flash, electrons + glass sparks, sparks from IGNC, sparks from TNT explosion, and sparks from FWRK and FIRW.
2012-06-17Fix STKM causing stacking and falling through some powdersjacksonmj1-11/+14
2012-06-15Move INST flood fill into a separate functionjacksonmj1-96/+149
Since there were so many if statements for INST in flood_parts. Also, allow INST inside walls to be sparked.
2012-06-13Update to EXOT that makes it permeable to neutrons as well as electrons. ↵Catelite1-0/+1
Neutrons cause a water>distilled water spread that enables EXOT's copy function, at its original speed. Electrons reset mode, but not tmp2. Trippy monochrome colors for copy mode. Conflicts: src/elements/exot.c
2012-06-10Prevent THDR from counting towards stacked particle limitjacksonmj1-1/+4
2012-06-09Avoid stacking in INVS and FILT, and fix pressurised INVS graphicsjacksonmj1-1/+5
Collisions now always work for particles inside INVS and FILT, so particles don't stack (just a single particle on top of each INVS/FILT). Pressurised INVS was being drawn using PMODE_FLAT (with no alpha blending), which sometimes hid particles inside INVS. Also limit BHOL tmp value to make sure it saves correctly.
2012-06-09Run stacking check less oftenjacksonmj1-6/+8
But force it to be run after loading a save so that really extreme numbers of stacked particles form BHOL immediately
2012-06-09Create BHOL when particles are stacked excessivelyjacksonmj1-0/+66
2012-06-09Prevent solid particles stacking in E-Holejacksonmj1-1/+1
Such as occurs when cloning a solid in E-Hole
2012-06-07Titanium only blocks air when it is connectedSimon Robertshaw1-3/+3
2012-06-07Added condition so that EXOT does not automatically replicate WARP to avoid ↵Catelite1-0/+1
confusion, and changed spawn tmp value to avoid instant copying on spawn.
2012-06-07Ton of changes to make EXOT work as expected. Added graphics to WARP to make ↵Catelite1-1/+2
it actually invisible besides BLOB mode, EXOT now makes rainbows and explodes with too many electrons o__o
2012-06-07omg EXOT element, made from BREL element sparked repeatedly while under >10 ↵Catelite1-0/+3
pressure. Not at all finished, but looks cool :D
2012-06-05Fix the bug with not-spawning fighter.Savely Skresanov1-2/+0
2012-06-05Put ifs into switch in create_part. Delete useless PSv saving function.Savely Skresanov1-195/+218
2012-05-31Prevent allocation of particles with type==0Simon Robertshaw1-1/+1
bleep bloop
2012-05-30Fix PROP_NEUTPENETRATE, particles weren't being moved into empty spacejacksonmj1-1/+1
2012-05-30Fixed the bug with snow, where it melted without taking it's ctype intoSavely Skresanov1-5/+5
account.
2012-05-28No rounding errors with triangle brush, so no need for epsilon (I hope).Savely Skresanov1-2/+1
2012-05-24remove lastx/lasty variables when OGLR is disabledJacob11-0/+10
Conflicts: src/graphics.c
2012-05-24VOID & PVOD can be set to only eat/not eat certain thingsJacob11-1/+2
2012-05-24energy type particles automatically go into photons, not pmapJacob11-8/+9
2012-05-24console doesn't enable hud, fast heat for PUMP/GPMP/ANIM, GPMP activated at drawJacob11-15/+17
2012-05-23fix emp flash, better live parts rendering in (render_ui &) deco editorJacob11-27/+1
2012-05-23fix compilingJacob11-2/+2
2012-05-17New flood_parts function, should fix crashing due to too much recursionjacksonmj1-64/+133
2012-05-17Spellingjacksonmj1-2/+2
("gases" seems to be the more popular version of the plural noun)
2012-05-12Make TTAN block pressure when framesteppingjacksonmj1-7/+2
2012-05-12Fancy motion blur for OpenGL, fix a lot of dialogues in OpenGL, fix gravity ↵Simon Robertshaw1-0/+10
lensing in OpenGL, ensure Phot and Neut are PMODE_ADD, not FLAT
2012-05-11New element: Titanium, absorbs some neutrons, acts as a solid wall to air. ↵Simon Robertshaw1-0/+7
Move blockair filling into update_particles so it can be used by elements
2012-05-06Change license from GPLv2+ to GPLv3+jacksonmj1-0/+17
Also add headers stating the license to some more of the source files