summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-04-27 16:46:40 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2012-04-27 16:46:40 (GMT)
commitc8a1524d6bf6bd9e249b31dcf699b589ae50cbba (patch)
tree01648fdb549598854fa5cd3da4d2382d43a3c70f /src
parent418bdf0892b53103faa2976a1621bf83de92c59c (diff)
downloadpowder-c8a1524d6bf6bd9e249b31dcf699b589ae50cbba.zip
powder-c8a1524d6bf6bd9e249b31dcf699b589ae50cbba.tar.gz
Save tmp2 for tron
Diffstat (limited to 'src')
-rw-r--r--src/save.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/save.c b/src/save.c
index a96cb05..df98635 100644
--- a/src/save.c
+++ b/src/save.c
@@ -1580,7 +1580,7 @@ void *build_save_PSv(int *size, int orig_x0, int orig_y0, int orig_w, int orig_h
for (j=0; j<w*h; j++)
{
i = m[j];
- if (i && (parts[i-1].type==PT_PBCN)) {
+ if (i && (parts[i-1].type==PT_PBCN || parts[i-1].type==PT_TRON)) {
//Save tmp2
d[p++] = parts[i-1].tmp2;
}
@@ -1963,7 +1963,7 @@ int parse_save_PSv(void *save, int size, int replace, int x0, int y0, unsigned c
{
i = m[j];
ty = d[pty+j];
- if (i && ty==PT_PBCN)
+ if (i && (ty==PT_PBCN || (ty==PT_TRON && ver>=77)))
{
if (p >= size)
goto corrupt;