summaryrefslogtreecommitdiff
path: root/src/save.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-17Remove old codeSimon Robertshaw1-2503/+0
2012-08-13fix many crashes when out of memoryjacob11-1/+37
2012-08-13Powered pipe, based on jacob1's commitsjacksonmj1-2/+21
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-07-190 is a valid value for activeMenujacksonmj1-1/+1
2012-07-09Add ptypes.enabled checks to a few more placesjacksonmj1-1/+1
2012-07-08Optimization for GoL, Added brush size and mouse wheel to lua!cracker641-1/+1
2012-07-06Ensure an array terminator is only written if the signs array actually exists.Simon Robertshaw1-1/+1
2012-06-20Save an extra tmp2 byte, for EXOTjacksonmj1-2/+17
2012-06-20Replace all explosion sparks with new element (EMBR)jacksonmj1-1/+52
Replaces: BOMB sparks and flash, electrons + glass sparks, sparks from IGNC, sparks from TNT explosion, and sparks from FWRK and FIRW.
2012-06-09Run stacking check less oftenjacksonmj1-0/+1
But force it to be run after loading a save so that really extreme numbers of stacked particles form BHOL immediately
2012-06-05Put ifs into switch in create_part. Delete useless PSv saving function.Savely Skresanov1-219/+0
2012-05-31Don't draw wall frame in loaded saves.Savely Skresanov1-0/+3
2012-05-24remove lastx/lasty variables when OGLR is disabledJacob11-0/+4
Conflicts: src/graphics.c
2012-05-23Check for version before enabling movable flag for sponge.Savely Skresanov1-1/+1
2012-05-20Update gravity mask when loading OPS savesjacksonmj1-0/+1
2012-05-12Fancy motion blur for OpenGL, fix a lot of dialogues in OpenGL, fix gravity ↵Simon Robertshaw1-0/+5
lensing in OpenGL, ensure Phot and Neut are PMODE_ADD, not FLAT
2012-05-06Change license from GPLv2+ to GPLv3+jacksonmj1-0/+17
Also add headers stating the license to some more of the source files
2012-04-30strncpy for loading sign text in OPSjacksonmj1-1/+1
2012-04-29Save soap bubblesjacksonmj1-6/+110
2012-04-28Delete signs when cutting; change sign location check when savingjacksonmj1-6/+6
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-27OPS loading: don't replace existing particles twice, and clear soap ctypejacksonmj1-1/+5
2012-04-27Save tmp2 for tronjacksonmj1-2/+2
2012-04-19Fix sponge bug.savask1-0/+5
2012-03-15all wall types drawn in PSV and OPS formatsJacob11-119/+151
2012-02-29Rotate/reflect particle, air, and fan velocities in transform_savejacksonmj1-4/+13
2012-01-26stickmen load correctly and are drawn in new save format, and fighters are ↵Jacob11-8/+85
drawn correctly in both Conflicts: src/save.c
2012-01-26Fix deco colour in prerender_save to work with other pixel formatsjacksonmj1-4/+6
2012-01-26save tmp2, show decoration color on stampsJacob11-7/+30
2012-01-25OPS thumbnail crash fix, and blank thumbnails for saves from a newer versionjacksonmj1-1/+5
2012-01-25transform_save should check wall coordinates against size in blocks, not the ↵jacksonmj1-1/+1
actual size Fixes crash when rotating a section of wall that is wider than YRES
2012-01-25Make transform_save work with new save functionsjacksonmj1-1/+139
Conflicts: src/powder.c
2012-01-25Revert "transform_save should check wall coordinates against size in blocks, ↵Simon Robertshaw1-136/+0
not the actual size" This reverts commit 34c6043014527747dcc3fee65f66d0686a74f3fd.
2012-01-25transform_save should check wall coordinates against size in blocks, not the ↵jacksonmj1-0/+136
actual size Fixes crash when rotating a section of wall that is wider than YRES Conflicts: src/save.c
2012-01-14Change variable declarations to make Visual Studio happyjacksonmj1-8/+9
2012-01-05Add 4 byte ctype saving to OPS, for PHOT coloursjacksonmj1-1/+21
2012-01-05Fix zero length save crash, ignore sign tool walls, allocate parts starting ↵jacksonmj1-2/+19
at beginning of array Allocating parts starting at end was making saves loaded from OPS files run slower, because no particles could be skipped by using parts_lastActiveIndex.
2012-01-02Fix missing and incorrect bitshifts preventing the correct reading of life, ↵Simon Robertshaw1-6/+6
tmp and dcolour
2012-01-02Save active menuSimon Robertshaw1-0/+33
2012-01-01Water equalisation in saveSimon Robertshaw1-0/+12
2012-01-01prerender_save_OPSSimon Robertshaw1-18/+229
2011-12-3116bit descriptor and variable temp field size, sign saving and readingSimon Robertshaw1-42/+150
2011-12-31Store number of parts at each position instead of storing x/y coordsjacksonmj1-115/+208
Also fix blockW/H calculation and PT_NUM check
2011-12-30Almost finished new save format, just signs and thumbnail rendering neededSimon Robertshaw1-15/+423
2011-12-30Make OPS optional (disabled by default) with define SAVE_OPSSimon Robertshaw1-1/+4
2011-12-30Add checks for prerender_save in save_filename_ui, pass vx, vy and pv air ↵Simon Robertshaw1-0/+1266
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?)