Simon Robertshaw
e7b174a78d
Revert "move version info to version.h, no longer needs full recompile on version change"
...
This reverts commit b3a2ab735b
.
2013-01-19 22:00:56 +00:00
jacob1
b3a2ab735b
move version info to version.h, no longer needs full recompile on version change
2013-01-15 11:28:28 -05:00
jacob1
41751da619
change some free/malloc's back to delete/new's
2013-01-12 21:06:52 -05:00
jacob1
d1abfc313e
fix mismatched free()/delete's
2013-01-06 18:26:38 -05:00
jacob1
e685e30d58
make sure that simulation variables are initialized, fixes things like water equalization always being on in old saves
2012-12-18 13:33:29 -05:00
jacksonmj
9c6f3c7fbb
Fix crash in GameSave::serialiseOPS
...
Only particlesCount particles have been copied from the Simulation.
All the rest are uninitialised, and may have coordinates outside the
game area. Using those uninitialised coordinates in the index for
partsPosFirstMap may cause a crash.
2012-12-16 23:01:04 +00:00
Simon Robertshaw
00190b4aab
Don't print PSV debug information when compiled for release
2012-12-16 16:38:12 +00:00
jacob1
d57fe7618c
fix walls loading incorrectly in extremely old saves. Fix some invalid save formats being loadable (it was onlychecking the 'O' in OPS)
2012-12-12 17:31:06 -05:00
Simon Robertshaw
05148e8a8d
C++erific text cleaner function, also, it's a good idea to actually clean text coming from signs...
2012-12-09 00:14:48 +00:00
jacob1
e5a284a2ba
fix compiling warnings / error
2012-12-06 12:34:32 -05:00
Simon Robertshaw
51a5af6d5d
Remove some debug printing
2012-11-12 10:48:20 +00:00
Simon Robertshaw
29189693b3
Element palette for automatic element ID/mod mapping
2012-11-12 10:22:16 +00:00
jacob1
fd07d35e34
limit the number of signs that can be placed
2012-10-26 15:13:00 +01:00
Simon Robertshaw
0801497ed2
Fix wall clipping during stamp rotation
2012-10-01 12:02:04 +01:00
Simon Robertshaw
1ac964d9ba
Ensure saves are expanded in memory when performing translate operations. Fixes #174
2012-09-03 12:38:09 +01:00
Simon Robertshaw
082072a05e
OPS: Fix byte order when unpacking 4 byte tmp fields
2012-08-25 16:29:27 +01:00
Simon Robertshaw
ba1ce66968
Correct particlesCount when reading PSv format, particlesCount was being assigned to the last index and thus was one less that desired. fixes #138
2012-08-21 01:09:22 +01:00
Simon Robertshaw
b318c3721a
TPT: Powered pipe, based on jacob1's commits
2012-08-20 16:48:03 +01:00
Simon Robertshaw
9dd9d52564
Herp derp, forgot to call dealloc in GameSave destructor
2012-08-19 20:57:14 +01:00
Simon Robertshaw
c0c30bd305
Looks like calling the destructor manually is not a good idea.
2012-08-19 20:44:50 +01:00
Simon Robertshaw
21f050800b
Load signs from OPS data
2012-08-17 17:08:24 +01:00
Simon Robertshaw
074dcd0b42
Precompile some headers. Fix sconscript to prevent recompiling everything
2012-08-13 15:43:57 +01:00
Simon Robertshaw
8ca27520a4
Use forward declarations more to avoid excessive includes
2012-08-12 22:32:57 +01:00
Simon Robertshaw
cbefea85d7
Local Saving, Server Saving rewrite
2012-08-01 22:29:22 +01:00
Simon Robertshaw
c14a008d46
Corrections to GameSave to prevent conflicts in the Expanded state, improve Save preview comments display
2012-07-28 18:38:34 +01:00
Simon Robertshaw
aa774771a0
Collapse gamesave to save space in memory
2012-07-28 02:23:21 +01:00
Simon Robertshaw
5befe5c25f
Local file browser + some more interesting things like Progress bar UI component
2012-07-27 20:06:17 +01:00
Simon Robertshaw
e36bc8e4ae
TPT: Gravity modes and Newtonian gravity for fireworks 31ce22f122
2012-07-25 17:44:29 +01:00
Simon Robertshaw
5031291bf6
TPT: Save an extra tmp2 byte, for EXOT fed8b7b2cc
2012-07-25 17:16:56 +01:00
Simon Robertshaw
6585a4640b
TPT: Replace all explosion sparks with new element (EMBR) 1d5b081942
2012-07-25 17:12:15 +01:00
Simon Robertshaw
33de0482a2
Use exceptions instead of goto to corrup state. Fix Fan wall loading with PSV and New wall IDs with OPS
2012-07-20 19:39:38 +01:00
Simon Robertshaw
332fbfe590
Ensure GameSave internal pointers are NULL at the start
2012-07-20 17:43:08 +01:00
Simon Robertshaw
1b1963932e
Move array terminator for sign saving into if statement
2012-07-06 16:08:52 +01:00
Simon Robertshaw
1fceab6e4a
Ensure partsSimIndex is freed upon success state of OPS parsing
2012-06-18 15:57:41 +01:00
Simon Robertshaw
fc86c24027
Better freeing for memory in GameSave
2012-06-18 15:54:55 +01:00
Simon Robertshaw
5144451b30
TPT: Check for version before enabling movable flag for sponge. 393d247312
2012-06-12 18:55:44 +01:00
Simon Robertshaw
318499350d
TPT: strncpy for loading sign text in OPS 433c1881bc
2012-06-12 17:13:30 +01:00
Simon Robertshaw
f2e1d38b58
TPT: Save soap bubbles 6717f4ff32
2012-06-12 17:06:38 +01:00
Simon Robertshaw
a270acfc54
OPS loading: don't replace existing particles twice, and clear soap c…
2012-06-12 16:30:27 +01:00
Simon Robertshaw
74d7fb59c3
TPT: Save tmp2 for tron c8a1524d6b
2012-06-12 16:11:34 +01:00
Simon Robertshaw
cdc4b4df86
Fix save rotation
2012-06-09 20:16:47 +01:00
Simon Robertshaw
26dbb9d309
Missing 'delete' on old blockMap data in save Tranformation
2012-06-09 19:43:35 +01:00
Simon Robertshaw
050ad82155
Unify stamp and clipboard placement code, GameSave translation and transoformation working (not particularly well)
2012-06-09 19:42:07 +01:00
Simon Robertshaw
c408e035fa
Preview: Wait for save to load before opening, Simulation: Correct block coords when reading wall data, replace existing particles when placing stamps on top, Game: Clear the simulation when loading a save
2012-06-09 14:54:58 +01:00
Simon Robertshaw
0ee1e1875d
Load save data when showing the save preview
2012-06-08 22:04:14 +01:00
Simon Robertshaw
61ed6e0276
Rename Save class to SaveInfo, introduce SaveFile for hanlding of local data (stamps and local saves). Rename Stamps browser to LocalBrowser, ready for sharing code with the local save browser
2012-06-07 14:23:26 +01:00
Simon Robertshaw
8fae7dbade
Saving and loading at position, yuse exceptions for parsing saves
2012-06-06 01:46:13 +01:00
Simon Robertshaw
7063587706
Fix bmap reading error caused by signed/unsigned comparison
2012-06-05 22:55:39 +01:00
Simon Robertshaw
49dafbfd26
Use a different method for decoding saves with uncompressed object in memory for stamps and clipboard, also allows for transformation (rotation), missing failure states and code for loading it into a Simulation
2012-06-05 20:08:35 +01:00