summaryrefslogtreecommitdiff
path: root/src/elements/pipe.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-17Remove old codeSimon Robertshaw1-563/+0
2012-09-05Fix bugs with energy particles in PIPEjacksonmj1-2/+9
2012-08-13Powered pipe, based on jacob1's commitsjacksonmj1-47/+254
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-06-17Revert "Moved soap and stick men graphics things to special functions."Simon Robertshaw1-2/+2
This reverts commit 7f5408f196002476c4765f1cae833e1441e4b276. Conflicts: includes/powder.h
2012-06-02Moved soap and stick men graphics things to special functions.Savely Skresanov1-2/+2
2012-05-07Change pipe and portal to check element type using properties instead of ↵jacksonmj1-2/+2
falldown and state
2012-05-06Added GPLv3+ license headers to all files in src/elements/Aditya Vaidya1-0/+15
2012-04-19Change STOR, PIPE, DUST to make correct use of .flags field.Simon Robertshaw1-10/+12
2012-04-10Stop walls next to pipe triggering automatic pattern generationjacksonmj1-1/+1
2011-12-18Make PIPE detach SOAP particles (crash fix)jacksonmj1-0/+2
2011-11-26Fix bug with PIPE where particles would have an incorrect colour if they ↵Simon Robertshaw1-0/+3
didn't explicitly set the colr/g/b in its own graphics update
2011-11-26Allow pipe to grab from photon map, BRAY beam takes temp from ARAYSimon Robertshaw1-39/+45
2011-11-12Make PIPE reset (ready to generate pattern) when ctype is cleared and life is 0jacksonmj1-2/+4
2011-10-28Fix Life and heat display, implement alpha, blend and add, fix FILT, INVS ↵Simon Robertshaw1-2/+2
and BRAY + others
2011-10-23Pass particle pointer to graphics update function instead of index. Make ↵Simon Robertshaw1-0/+82
PIPE use subcall to get graphics info. Cache for particle graphics properties. Stickman PSPEC_STICKMAN added and implemented
2011-09-30Prevent segfault with high tmp values for pipejacksonmj1-1/+1
2011-08-30Always check bmap when creating particlesjacksonmj1-1/+1
2011-08-30Fixes: HUD for fast PIPE, PIPE contents disappearing when next to walls, ↵jacksonmj1-2/+2
scrolling special menu, and parts_lastActiveIndex
2011-08-29Added STOR, a block that can store a single particle and release when chargedSimon Robertshaw1-0/+10
2011-08-27Remove blocking walls from pmapjacksonmj1-5/+3
2.5% speed increase on a screen full of water
2011-07-08Deleted whole repository due to weirdness with recognizing folder. From ↵Cate1-25/+119
current source, added Cracker64's changes that make 1px pipe several times faster than thicker pipe. Doesn't break saves. :D
2011-06-25Make pipe save ctype and tmpjacksonmj1-0/+6
2011-06-02Speed up update_PIPEjacksonmj1-78/+85
By making it call rand() once instead of 6 times.
2011-03-30A cracker commit with some nice commentsSimon1-3/+3
2011-01-28Change include file for element update functionsjacksonmj1-1/+1
2011-01-13Merge element state into ptypes.jacksonmj1-1/+1
All of the pstates array except .state was replaced by ptransitions.
2011-01-10Finish update function cleanupjacksonmj1-25/+26
2011-01-07More function pointers.jacksonmj1-0/+121