Half-Implemented history
This commit is contained in:
parent
42ec12d02f
commit
812cf13ed2
@ -8,7 +8,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SAVE_VERSION 42
|
#define SAVE_VERSION 42
|
||||||
#define MINOR_VERSION 0
|
#define MINOR_VERSION 1
|
||||||
#define IDENT_VERSION "G" //Change this if you're not Simon! It should be a single letter.
|
#define IDENT_VERSION "G" //Change this if you're not Simon! It should be a single letter.
|
||||||
#define BETA
|
#define BETA
|
||||||
|
|
||||||
|
@ -2114,13 +2114,16 @@ pixel *prerender_save(void *save, int size, int *width, int *height)
|
|||||||
{
|
{
|
||||||
unsigned char *d,*c=save;
|
unsigned char *d,*c=save;
|
||||||
int i,j,k,x,y,rx,ry,p=0;
|
int i,j,k,x,y,rx,ry,p=0;
|
||||||
int bw,bh,w,h;
|
int bw,bh,w,h,new_format = 0;
|
||||||
pixel *fb;
|
pixel *fb;
|
||||||
|
|
||||||
if(size<16)
|
if(size<16)
|
||||||
return NULL;
|
return NULL;
|
||||||
if(c[2]!=0x43 || c[1]!=0x75 || c[0]!=0x66)
|
if(!(c[2]==0x43 && c[1]==0x75 && c[0]==0x66) && !(c[2]==0x76 && c[1]==0x53 && c[0]==0x50))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
if(c[2]==0x43 && c[1]==0x75 && c[0]==0x66){
|
||||||
|
new_format = 1;
|
||||||
|
}
|
||||||
if(c[4]>SAVE_VERSION)
|
if(c[4]>SAVE_VERSION)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
103
interface.c
103
interface.c
@ -35,6 +35,7 @@ void *svf_last = NULL;
|
|||||||
int svf_lsize;
|
int svf_lsize;
|
||||||
|
|
||||||
char *search_ids[GRID_X*GRID_Y];
|
char *search_ids[GRID_X*GRID_Y];
|
||||||
|
char *search_dates[GRID_X*GRID_Y];
|
||||||
int search_votes[GRID_X*GRID_Y];
|
int search_votes[GRID_X*GRID_Y];
|
||||||
int search_publish[GRID_X*GRID_Y];
|
int search_publish[GRID_X*GRID_Y];
|
||||||
int search_scoredown[GRID_X*GRID_Y];
|
int search_scoredown[GRID_X*GRID_Y];
|
||||||
@ -1563,11 +1564,11 @@ int sdl_poll(void)
|
|||||||
sdl_zoom_trig = 1;
|
sdl_zoom_trig = 1;
|
||||||
Z_keysym = event.key.keysym.sym;
|
Z_keysym = event.key.keysym.sym;
|
||||||
}
|
}
|
||||||
if( event.key.keysym.sym == SDLK_PLUS || event.key.keysym.sym == SDLK_RIGHTBRACKET)
|
if( event.key.keysym.sym == SDLK_PLUS)
|
||||||
{
|
{
|
||||||
sdl_wheel++;
|
sdl_wheel++;
|
||||||
}
|
}
|
||||||
if( event.key.keysym.sym == SDLK_MINUS || event.key.keysym.sym == SDLK_LEFTBRACKET)
|
if( event.key.keysym.sym == SDLK_MINUS)
|
||||||
{
|
{
|
||||||
sdl_wheel--;
|
sdl_wheel--;
|
||||||
}
|
}
|
||||||
@ -1788,6 +1789,7 @@ int search_ui(pixel *vid_buf)
|
|||||||
memset(img_id, 0, sizeof(img_id));
|
memset(img_id, 0, sizeof(img_id));
|
||||||
|
|
||||||
memset(search_ids, 0, sizeof(search_ids));
|
memset(search_ids, 0, sizeof(search_ids));
|
||||||
|
memset(search_dates, 0, sizeof(search_dates));
|
||||||
memset(search_names, 0, sizeof(search_names));
|
memset(search_names, 0, sizeof(search_names));
|
||||||
memset(search_scoreup, 0, sizeof(search_scoreup));
|
memset(search_scoreup, 0, sizeof(search_scoreup));
|
||||||
memset(search_scoredown, 0, sizeof(search_scoredown));
|
memset(search_scoredown, 0, sizeof(search_scoredown));
|
||||||
@ -1962,7 +1964,7 @@ int search_ui(pixel *vid_buf)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
pos = gi+GRID_X*gj;
|
pos = gi+GRID_X*gj;
|
||||||
if(!search_ids[pos])
|
if(!search_dates[pos])
|
||||||
break;
|
break;
|
||||||
gx = ((XRES/GRID_X)*gi) + (XRES/GRID_X-XRES/GRID_S)/2;
|
gx = ((XRES/GRID_X)*gi) + (XRES/GRID_X-XRES/GRID_S)/2;
|
||||||
gy = ((((YRES-(MENUSIZE-20))+15)/GRID_Y)*gj) + ((YRES-(MENUSIZE-20))/GRID_Y-(YRES-(MENUSIZE-20))/GRID_S+10)/2 + 18;
|
gy = ((((YRES-(MENUSIZE-20))+15)/GRID_Y)*gj) + ((YRES-(MENUSIZE-20))/GRID_Y-(YRES-(MENUSIZE-20))/GRID_S+10)/2 + 18;
|
||||||
@ -2003,6 +2005,9 @@ int search_ui(pixel *vid_buf)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
drawrect(vid_buf, gx-2+(XRES/GRID_S)+5, gy-2, 6, YRES/GRID_S+3, 128, 128, 128, 255);
|
drawrect(vid_buf, gx-2+(XRES/GRID_S)+5, gy-2, 6, YRES/GRID_S+3, 128, 128, 128, 255);
|
||||||
|
fillrect(vid_buf, gx-2+(XRES/GRID_S)+5, gy-2, 6, 1+(YRES/GRID_S+3)/2, 0, 107, 10, 255);
|
||||||
|
fillrect(vid_buf, gx-2+(XRES/GRID_S)+5, gy-2+((YRES/GRID_S+3)/2), 6, 1+(YRES/GRID_S+3)/2, 107, 10, 0, 255);
|
||||||
|
|
||||||
if(mp==pos && !st)
|
if(mp==pos && !st)
|
||||||
drawrect(vid_buf, gx-2, gy-2, XRES/GRID_S+3, YRES/GRID_S+3, 160, 160, 192, 255);
|
drawrect(vid_buf, gx-2, gy-2, XRES/GRID_S+3, YRES/GRID_S+3, 160, 160, 192, 255);
|
||||||
else
|
else
|
||||||
@ -2061,9 +2066,9 @@ int search_ui(pixel *vid_buf)
|
|||||||
nyd = search_scoredown[pos]/ry;
|
nyd = search_scoredown[pos]/ry;
|
||||||
}
|
}
|
||||||
|
|
||||||
fillrect(vid_buf, gx-1+(XRES/GRID_S)+5, gy-2+((YRES/GRID_S+3)/2)-nyu, 4, nyu, 57, 187, 57, 255);
|
|
||||||
fillrect(vid_buf, gx-1+(XRES/GRID_S)+5, gy-2+((YRES/GRID_S+3)/2)+1, 4, nyd, 187, 57, 57, 255);
|
|
||||||
|
|
||||||
|
fillrect(vid_buf, gx-1+(XRES/GRID_S)+5, gy-1+((YRES/GRID_S+3)/2)-nyu, 4, nyu, 57, 187, 57, 255);
|
||||||
|
fillrect(vid_buf, gx-1+(XRES/GRID_S)+5, gy-2+((YRES/GRID_S+3)/2), 4, nyd, 187, 57, 57, 255);
|
||||||
//drawrect(vid_buf, gx-2+(XRES/GRID_S)+5, gy-2+((YRES/GRID_S+3)/2)-nyu, 4, nyu, 0, 107, 10, 255);
|
//drawrect(vid_buf, gx-2+(XRES/GRID_S)+5, gy-2+((YRES/GRID_S+3)/2)-nyu, 4, nyu, 0, 107, 10, 255);
|
||||||
//drawrect(vid_buf, gx-2+(XRES/GRID_S)+5, gy-2+((YRES/GRID_S+3)/2)+1, 4, nyd, 107, 10, 0, 255);
|
//drawrect(vid_buf, gx-2+(XRES/GRID_S)+5, gy-2+((YRES/GRID_S+3)/2)+1, 4, nyd, 107, 10, 0, 255);
|
||||||
}
|
}
|
||||||
@ -2157,9 +2162,17 @@ int search_ui(pixel *vid_buf)
|
|||||||
fillrect(vid_buf, 0, 0, XRES+BARSIZE, YRES+MENUSIZE, 0, 0, 0, 255);
|
fillrect(vid_buf, 0, 0, XRES+BARSIZE, YRES+MENUSIZE, 0, 0, 0, 255);
|
||||||
info_box(vid_buf, "Loading...");
|
info_box(vid_buf, "Loading...");
|
||||||
|
|
||||||
|
if(search_dates[mp]){
|
||||||
|
uri = malloc(strlen(search_ids[mp])*3+strlen(search_dates[mp])*3+strlen(SERVER)+71);
|
||||||
|
strcpy(uri, "http://" SERVER "/Get.api?Op=save&ID=");
|
||||||
|
strcaturl(uri, search_ids[mp]);
|
||||||
|
strcaturl(uri, "&Date=");
|
||||||
|
strcaturl(uri, search_dates[mp]);
|
||||||
|
} else {
|
||||||
uri = malloc(strlen(search_ids[mp])*3+strlen(SERVER)+64);
|
uri = malloc(strlen(search_ids[mp])*3+strlen(SERVER)+64);
|
||||||
strcpy(uri, "http://" SERVER "/Get.api?Op=save&ID=");
|
strcpy(uri, "http://" SERVER "/Get.api?Op=save&ID=");
|
||||||
strcaturl(uri, search_ids[mp]);
|
strcaturl(uri, search_ids[mp]);
|
||||||
|
}
|
||||||
data = http_simple_get(uri, &status, &dlen);
|
data = http_simple_get(uri, &status, &dlen);
|
||||||
free(uri);
|
free(uri);
|
||||||
|
|
||||||
@ -2436,7 +2449,7 @@ finish:
|
|||||||
int search_results(char *str, int votes)
|
int search_results(char *str, int votes)
|
||||||
{
|
{
|
||||||
int i,j;
|
int i,j;
|
||||||
char *p,*q,*r,*s,*vu,*vd,*pu;
|
char *p,*q,*r,*s,*vu,*vd,*pu,*sd;
|
||||||
|
|
||||||
for(i=0; i<GRID_X*GRID_Y; i++)
|
for(i=0; i<GRID_X*GRID_Y; i++)
|
||||||
{
|
{
|
||||||
@ -2450,6 +2463,11 @@ int search_results(char *str, int votes)
|
|||||||
free(search_names[i]);
|
free(search_names[i]);
|
||||||
search_names[i] = NULL;
|
search_names[i] = NULL;
|
||||||
}
|
}
|
||||||
|
if(search_dates[i])
|
||||||
|
{
|
||||||
|
free(search_dates[i]);
|
||||||
|
search_dates[i] = NULL;
|
||||||
|
}
|
||||||
if(search_owners[i])
|
if(search_owners[i])
|
||||||
{
|
{
|
||||||
free(search_owners[i]);
|
free(search_owners[i]);
|
||||||
@ -2544,7 +2562,78 @@ int search_results(char *str, int votes)
|
|||||||
|
|
||||||
if(s)
|
if(s)
|
||||||
search_votes[i] = atoi(s);
|
search_votes[i] = atoi(s);
|
||||||
thumb_cache_find(str, search_thumbs+i, search_thsizes+i);
|
thumb_cache_find(str+5, search_thumbs+i, search_thsizes+i);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
else if(!strncmp(str, "HISTORY ", 8))
|
||||||
|
{
|
||||||
|
if(i>=GRID_X*GRID_Y)
|
||||||
|
break;
|
||||||
|
if(votes)
|
||||||
|
{
|
||||||
|
sd = strchr(str+8, ' ');
|
||||||
|
if(!sd)
|
||||||
|
return i;
|
||||||
|
*(sd++) = 0;
|
||||||
|
pu = strchr(sd, ' ');
|
||||||
|
if(!pu)
|
||||||
|
return i;
|
||||||
|
*(pu++) = 0;
|
||||||
|
s = strchr(pu, ' ');
|
||||||
|
if(!s)
|
||||||
|
return i;
|
||||||
|
*(s++) = 0;
|
||||||
|
vu = strchr(s, ' ');
|
||||||
|
if(!vu)
|
||||||
|
return i;
|
||||||
|
*(vu++) = 0;
|
||||||
|
vd = strchr(vu, ' ');
|
||||||
|
if(!vd)
|
||||||
|
return i;
|
||||||
|
*(vd++) = 0;
|
||||||
|
q = strchr(vd, ' ');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sd = strchr(str+8, ' ');
|
||||||
|
if(!sd)
|
||||||
|
return i;
|
||||||
|
*(sd++) = 0;
|
||||||
|
pu = strchr(sd, ' ');
|
||||||
|
if(!pu)
|
||||||
|
return i;
|
||||||
|
*(pu++) = 0;
|
||||||
|
vu = strchr(pu, ' ');
|
||||||
|
if(!vu)
|
||||||
|
return i;
|
||||||
|
*(vu++) = 0;
|
||||||
|
vd = strchr(vu, ' ');
|
||||||
|
if(!vd)
|
||||||
|
return i;
|
||||||
|
*(vd++) = 0;
|
||||||
|
q = strchr(vd, ' ');
|
||||||
|
}
|
||||||
|
if(!q)
|
||||||
|
return i;
|
||||||
|
*(q++) = 0;
|
||||||
|
r = strchr(q, ' ');
|
||||||
|
if(!r)
|
||||||
|
return i;
|
||||||
|
*(r++) = 0;
|
||||||
|
search_ids[i] = mystrdup(str+8);
|
||||||
|
|
||||||
|
search_dates[i] = mystrdup(sd);
|
||||||
|
|
||||||
|
search_publish[i] = atoi(pu);
|
||||||
|
search_scoreup[i] = atoi(vu);
|
||||||
|
search_scoredown[i] = atoi(vd);
|
||||||
|
|
||||||
|
search_owners[i] = mystrdup(q);
|
||||||
|
search_names[i] = mystrdup(r);
|
||||||
|
|
||||||
|
if(s)
|
||||||
|
search_votes[i] = atoi(s);
|
||||||
|
thumb_cache_find(str+8, search_thumbs+i, search_thsizes+i);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
else if(!strncmp(str, "TAG ", 4))
|
else if(!strncmp(str, "TAG ", 4))
|
||||||
|
@ -101,6 +101,7 @@ extern void *svf_last;
|
|||||||
extern int svf_lsize;
|
extern int svf_lsize;
|
||||||
|
|
||||||
extern char *search_ids[GRID_X*GRID_Y];
|
extern char *search_ids[GRID_X*GRID_Y];
|
||||||
|
extern char *search_dates[GRID_X*GRID_Y];
|
||||||
extern int search_votes[GRID_X*GRID_Y];
|
extern int search_votes[GRID_X*GRID_Y];
|
||||||
extern int search_publish[GRID_X*GRID_Y];
|
extern int search_publish[GRID_X*GRID_Y];
|
||||||
extern int search_scoredown[GRID_X*GRID_Y];
|
extern int search_scoredown[GRID_X*GRID_Y];
|
||||||
|
83
main.c
83
main.c
@ -231,7 +231,7 @@ void *build_thumb(int *size, int bzip2)
|
|||||||
|
|
||||||
void *build_save(int *size, int x0, int y0, int w, int h)
|
void *build_save(int *size, int x0, int y0, int w, int h)
|
||||||
{
|
{
|
||||||
unsigned char *d=calloc(1,3*(XRES/CELL)*(YRES/CELL)+(XRES*YRES)*7+MAXSIGNS*262), *c;
|
unsigned char *d=calloc(1,3*(XRES/CELL)*(YRES/CELL)+(XRES*YRES)*8+MAXSIGNS*262), *c;
|
||||||
int i,j,x,y,p=0,*m=calloc(XRES*YRES, sizeof(int));
|
int i,j,x,y,p=0,*m=calloc(XRES*YRES, sizeof(int));
|
||||||
int bx0=x0/CELL, by0=y0/CELL, bw=(w+CELL-1)/CELL, bh=(h+CELL-1)/CELL;
|
int bx0=x0/CELL, by0=y0/CELL, bw=(w+CELL-1)/CELL, bh=(h+CELL-1)/CELL;
|
||||||
|
|
||||||
@ -310,10 +310,10 @@ void *build_save(int *size, int x0, int y0, int w, int h)
|
|||||||
i = m[j];
|
i = m[j];
|
||||||
if(i)
|
if(i)
|
||||||
{
|
{
|
||||||
unsigned char tttemp = (unsigned char)((parts[i-1].temp+(-MIN_TEMP))/((MAX_TEMP+(-MIN_TEMP))/255));
|
//New Temperature saving uses a 16bit unsigned int for temperatures, giving a precision of 1 degree versus 36 for the old format
|
||||||
//if(tttemp<0) tttemp=0;
|
int tttemp = (int)parts[i-1].temp;
|
||||||
//if(tttemp>255) tttemp=255;
|
d[p++] = ((tttemp&0xFF00)>>8);
|
||||||
d[p++] = tttemp;
|
d[p++] = (tttemp&0x00FF);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(j=0; j<w*h; j++)
|
for(j=0; j<w*h; j++)
|
||||||
@ -348,9 +348,13 @@ void *build_save(int *size, int x0, int y0, int w, int h)
|
|||||||
|
|
||||||
i = (p*101+99)/100 + 612;
|
i = (p*101+99)/100 + 612;
|
||||||
c = malloc(i);
|
c = malloc(i);
|
||||||
c[0] = 0x66;
|
|
||||||
c[1] = 0x75;
|
//New file header uses PSv, replacing fuC. This is to detect if the client uses a new save format for temperatures
|
||||||
c[2] = 0x43;
|
//This creates a problem for old clients, that display and "corrupt" error instead of a "newer version" error
|
||||||
|
|
||||||
|
c[0] = 0x50; //0x66;
|
||||||
|
c[1] = 0x53; //0x75;
|
||||||
|
c[2] = 0x76; //0x43;
|
||||||
c[3] = legacy_enable;
|
c[3] = legacy_enable;
|
||||||
c[4] = SAVE_VERSION;
|
c[4] = SAVE_VERSION;
|
||||||
c[5] = CELL;
|
c[5] = CELL;
|
||||||
@ -380,12 +384,18 @@ int parse_save(void *save, int size, int replace, int x0, int y0)
|
|||||||
unsigned char *d,*c=save;
|
unsigned char *d,*c=save;
|
||||||
int i,j,k,x,y,p=0,*m=calloc(XRES*YRES, sizeof(int)), ver, pty, ty, legacy_beta=0;
|
int i,j,k,x,y,p=0,*m=calloc(XRES*YRES, sizeof(int)), ver, pty, ty, legacy_beta=0;
|
||||||
int bx0=x0/CELL, by0=y0/CELL, bw, bh, w, h;
|
int bx0=x0/CELL, by0=y0/CELL, bw, bh, w, h;
|
||||||
int fp[NPART], nf=0;
|
int fp[NPART], nf=0, new_format = 0, ttv = 0;
|
||||||
|
|
||||||
|
//New file header uses PSv, replacing fuC. This is to detect if the client uses a new save format for temperatures
|
||||||
|
//This creates a problem for old clients, that display and "corrupt" error instead of a "newer version" error
|
||||||
|
|
||||||
if(size<16)
|
if(size<16)
|
||||||
return 1;
|
return 1;
|
||||||
if(c[2]!=0x43 || c[1]!=0x75 || c[0]!=0x66)
|
if(!(c[2]==0x43 && c[1]==0x75 && c[0]==0x66) && !(c[2]==0x76 && c[1]==0x53 && c[0]==0x50))
|
||||||
return 1;
|
return 1;
|
||||||
|
if(c[2]==0x76 && c[1]==0x53 && c[0]==0x50){
|
||||||
|
new_format = 1;
|
||||||
|
}
|
||||||
if(c[4]>SAVE_VERSION)
|
if(c[4]>SAVE_VERSION)
|
||||||
return 2;
|
return 2;
|
||||||
ver = c[4];
|
ver = c[4];
|
||||||
@ -590,7 +600,13 @@ int parse_save(void *save, int size, int replace, int x0, int y0)
|
|||||||
if(i <= NPART)
|
if(i <= NPART)
|
||||||
{
|
{
|
||||||
if(ver>=42) {
|
if(ver>=42) {
|
||||||
|
if(new_format){
|
||||||
|
ttv = (d[p++])<<8;
|
||||||
|
ttv |= (d[p++]);
|
||||||
|
parts[i-1].temp = ttv;
|
||||||
|
} else {
|
||||||
parts[i-1].temp = (d[p++]*((MAX_TEMP+(-MIN_TEMP))/255))+MIN_TEMP;
|
parts[i-1].temp = (d[p++]*((MAX_TEMP+(-MIN_TEMP))/255))+MIN_TEMP;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
parts[i-1].temp = ((d[p++]*((O_MAX_TEMP+(-O_MIN_TEMP))/255))+O_MIN_TEMP)+273;
|
parts[i-1].temp = ((d[p++]*((O_MAX_TEMP+(-O_MIN_TEMP))/255))+O_MIN_TEMP)+273;
|
||||||
}
|
}
|
||||||
@ -598,6 +614,9 @@ int parse_save(void *save, int size, int replace, int x0, int y0)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
p++;
|
p++;
|
||||||
|
if(new_format){
|
||||||
|
p++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1234,6 +1253,50 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
set_cmode(6);
|
set_cmode(6);
|
||||||
}
|
}
|
||||||
|
if(sdl_key==SDLK_LEFTBRACKET){
|
||||||
|
if(sdl_zoom_trig==1)
|
||||||
|
{
|
||||||
|
ZSIZE -= 1;
|
||||||
|
if(ZSIZE>32)
|
||||||
|
ZSIZE = 32;
|
||||||
|
if(ZSIZE<2)
|
||||||
|
ZSIZE = 2;
|
||||||
|
ZFACTOR = 256/ZSIZE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(sdl_mod & (KMOD_LCTRL|KMOD_RCTRL))
|
||||||
|
bs -= 1;
|
||||||
|
else
|
||||||
|
bs -= ceil((bs/5)+0.5f);
|
||||||
|
if(bs>1224)
|
||||||
|
bs = 1224;
|
||||||
|
if(bs<0)
|
||||||
|
bs = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(sdl_key==SDLK_RIGHTBRACKET){
|
||||||
|
if(sdl_zoom_trig==1)
|
||||||
|
{
|
||||||
|
ZSIZE += 1;
|
||||||
|
if(ZSIZE>32)
|
||||||
|
ZSIZE = 32;
|
||||||
|
if(ZSIZE<2)
|
||||||
|
ZSIZE = 2;
|
||||||
|
ZFACTOR = 256/ZSIZE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(sdl_mod & (KMOD_LCTRL|KMOD_RCTRL))
|
||||||
|
bs += 1;
|
||||||
|
else
|
||||||
|
bs += ceil((bs/5)+0.5f);
|
||||||
|
if(bs>1224)
|
||||||
|
bs = 1224;
|
||||||
|
if(bs<0)
|
||||||
|
bs = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
if(sdl_key==SDLK_SPACE)
|
if(sdl_key==SDLK_SPACE)
|
||||||
sys_pause = !sys_pause;
|
sys_pause = !sys_pause;
|
||||||
if(sdl_key=='h')
|
if(sdl_key=='h')
|
||||||
|
8
powder.c
8
powder.c
@ -245,6 +245,8 @@ inline int create_part(int p, int x, int y, int t)
|
|||||||
parts[i].life = rand()%120+240;
|
parts[i].life = rand()%120+240;
|
||||||
if(t==PT_NBLE)
|
if(t==PT_NBLE)
|
||||||
parts[i].life = 0;
|
parts[i].life = 0;
|
||||||
|
if(t==PT_ICEI)
|
||||||
|
parts[i].ctype = PT_WATR;
|
||||||
if(t==PT_NEUT)
|
if(t==PT_NEUT)
|
||||||
{
|
{
|
||||||
float r = (rand()%128+128)/127.0f;
|
float r = (rand()%128+128)/127.0f;
|
||||||
@ -701,6 +703,8 @@ void update_particles_i(pixel *vid, int start, int inc)
|
|||||||
int ctemp = pv[y/CELL][x/CELL]*2;
|
int ctemp = pv[y/CELL][x/CELL]*2;
|
||||||
c_heat = 0.0f;
|
c_heat = 0.0f;
|
||||||
h_count = 0;
|
h_count = 0;
|
||||||
|
if(t==PT_ICEI && !parts[i].ctype)
|
||||||
|
parts[i].ctype = PT_WATR;
|
||||||
if(ptypes[t].hconduct>(rand()%250))
|
if(ptypes[t].hconduct>(rand()%250))
|
||||||
{
|
{
|
||||||
for(nx=-1; nx<2; nx++)
|
for(nx=-1; nx<2; nx++)
|
||||||
@ -822,11 +826,11 @@ void update_particles_i(pixel *vid, int start, int inc)
|
|||||||
pt = parts[i].temp = restrict_flt(parts[i].temp, MIN_TEMP, MAX_TEMP);
|
pt = parts[i].temp = restrict_flt(parts[i].temp, MIN_TEMP, MAX_TEMP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(t==PT_PTCT&&parts[i].temp>249.0f)
|
if(t==PT_PTCT&&parts[i].temp>295.0f)
|
||||||
{
|
{
|
||||||
pt = parts[i].temp -= 2.5f;
|
pt = parts[i].temp -= 2.5f;
|
||||||
}
|
}
|
||||||
if(t==PT_NTCT&&parts[i].temp>249.0f)
|
if(t==PT_NTCT&&parts[i].temp>295.0f)
|
||||||
{
|
{
|
||||||
pt = parts[i].temp -= 2.5f;
|
pt = parts[i].temp -= 2.5f;
|
||||||
}
|
}
|
||||||
|
20
powder.h
20
powder.h
@ -221,7 +221,7 @@ static const part_type ptypes[PT_NUM] =
|
|||||||
{"MWAX", PIXPACK(0xE0E0AA), 0.3f, 0.02f * CFDS, 0.95f, 0.80f, 0.0f, 0.15f, 0.00f, 0.000001f* CFDS,2, 5, 0, 0, 2, 1, SC_LIQUID, R_TEMP+28.0f+273.15f, 44, "Liquid Wax."},
|
{"MWAX", PIXPACK(0xE0E0AA), 0.3f, 0.02f * CFDS, 0.95f, 0.80f, 0.0f, 0.15f, 0.00f, 0.000001f* CFDS,2, 5, 0, 0, 2, 1, SC_LIQUID, R_TEMP+28.0f+273.15f, 44, "Liquid Wax."},
|
||||||
{"PSCN", PIXPACK(0x805050), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "P-Type Silicon, Will transfer current to any conductor."},
|
{"PSCN", PIXPACK(0x805050), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "P-Type Silicon, Will transfer current to any conductor."},
|
||||||
{"NSCN", PIXPACK(0x505080), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "N-Type Silicon, Will only transfer current to P-Type Silicon."},
|
{"NSCN", PIXPACK(0x505080), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "N-Type Silicon, Will only transfer current to P-Type Silicon."},
|
||||||
{"LN2", PIXPACK(0x80A0DF), 0.6f, 0.01f * CFDS, 0.98f, 0.95f, 0.0f, 0.1f, 0.00f, 0.000f * CFDS, 2, 0, 0, 0, 0, 1, SC_LIQUID, -195.0f +273.15f, 70, "Liquid Nitrogen. Very cold."},
|
{"LN2", PIXPACK(0x80A0DF), 0.6f, 0.01f * CFDS, 0.98f, 0.95f, 0.0f, 0.1f, 0.00f, 0.000f * CFDS, 2, 0, 0, 0, 0, 1, SC_LIQUID, 70.15f, 70, "Liquid Nitrogen. Very cold."},
|
||||||
{"INSL", PIXPACK(0x9EA3B6), 0.0f, 0.00f * CFDS, 0.95f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 7, 0, 0, 10, 1, SC_SPECIAL, R_TEMP+0.0f +273.15f, 0, "Insulator, does not conduct heat or electricity."},
|
{"INSL", PIXPACK(0x9EA3B6), 0.0f, 0.00f * CFDS, 0.95f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 7, 0, 0, 10, 1, SC_SPECIAL, R_TEMP+0.0f +273.15f, 0, "Insulator, does not conduct heat or electricity."},
|
||||||
{"BHOL", PIXPACK(0x202020), 0.0f, 0.00f * CFDS, 0.95f, 0.00f, 0.0f, 0.0f, 0.00f, -0.01f * CFDS, 0, 0, 0, 0, 0, 1, SC_SPECIAL, R_TEMP+70.0f+273.15f, 255, "Black hole, sucks in other particles and heats up."},
|
{"BHOL", PIXPACK(0x202020), 0.0f, 0.00f * CFDS, 0.95f, 0.00f, 0.0f, 0.0f, 0.00f, -0.01f * CFDS, 0, 0, 0, 0, 0, 1, SC_SPECIAL, R_TEMP+70.0f+273.15f, 255, "Black hole, sucks in other particles and heats up."},
|
||||||
{"WHOL", PIXPACK(0xEFEFEF), 0.0f, 0.00f * CFDS, 0.95f, 0.00f, 0.0f, 0.0f, 0.00f, 0.010f * CFDS, 0, 0, 0, 0, 0, 1, SC_SPECIAL, R_TEMP-16.0f+273.15f, 255, "White hole, pushes other particles away."},
|
{"WHOL", PIXPACK(0xEFEFEF), 0.0f, 0.00f * CFDS, 0.95f, 0.00f, 0.0f, 0.0f, 0.00f, 0.010f * CFDS, 0, 0, 0, 0, 0, 1, SC_SPECIAL, R_TEMP-16.0f+273.15f, 255, "White hole, pushes other particles away."},
|
||||||
@ -235,7 +235,7 @@ static const part_type ptypes[PT_NUM] =
|
|||||||
{"THDR", PIXPACK(0xFFFFA0), 0.0f, 0.00f * CFDS, 1.0f, 0.30f, -0.99f, 0.6f, 0.62f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, SC_ELEC, 9000.0f +273.15f, 251, "Lightning! Very hot, inflicts damage upon most materials, transfers current to metals."},
|
{"THDR", PIXPACK(0xFFFFA0), 0.0f, 0.00f * CFDS, 1.0f, 0.30f, -0.99f, 0.6f, 0.62f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, SC_ELEC, 9000.0f +273.15f, 251, "Lightning! Very hot, inflicts damage upon most materials, transfers current to metals."},
|
||||||
{"PLSM", PIXPACK(0xBB99FF), 0.9f, 0.04f * CFDS, 0.97f, 0.20f, 0.0f, -0.1f, 0.30f, 0.001f * CFDS, 0, 0, 0, 0, 0, 1, SC_GAS, 9000.0f +273.15f, 115, "Plasma, extremely hot."},
|
{"PLSM", PIXPACK(0xBB99FF), 0.9f, 0.04f * CFDS, 0.97f, 0.20f, 0.0f, -0.1f, 0.30f, 0.001f * CFDS, 0, 0, 0, 0, 0, 1, SC_GAS, 9000.0f +273.15f, 115, "Plasma, extremely hot."},
|
||||||
{"ETRD", PIXPACK(0x404040), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "Electrode. Creates a surface that allows Plasma arcs. (Use sparingly)"},
|
{"ETRD", PIXPACK(0x404040), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "Electrode. Creates a surface that allows Plasma arcs. (Use sparingly)"},
|
||||||
{"NICE", PIXPACK(0xC0E0FF), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, -0.0005f* CFDS, 0, 0, 0, 0, 20, 1, SC_SOLIDS, -250.0f +273.15f, 46, "Nitrogen Ice."},
|
{"NICE", PIXPACK(0xC0E0FF), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, -0.0005f* CFDS, 0, 0, 0, 0, 20, 1, SC_SOLIDS, 35.0f, 46, "Nitrogen Ice."},
|
||||||
{"NBLE", PIXPACK(0xEB4917), 1.0f, 0.01f * CFDS, 0.99f, 0.30f, -0.1f, 0.0f, 0.75f, 0.001f * CFDS, 0, 0, 0, 0, 1, 1, SC_GAS, R_TEMP+2.0f +273.15f, 106, "Noble Gas. Diffuses. Conductive. Ionizes into plasma when intruduced to electricity"},
|
{"NBLE", PIXPACK(0xEB4917), 1.0f, 0.01f * CFDS, 0.99f, 0.30f, -0.1f, 0.0f, 0.75f, 0.001f * CFDS, 0, 0, 0, 0, 1, 1, SC_GAS, R_TEMP+2.0f +273.15f, 106, "Noble Gas. Diffuses. Conductive. Ionizes into plasma when intruduced to electricity"},
|
||||||
{"BTRY", PIXPACK(0x858505), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "Solid. Generates Electricity."},
|
{"BTRY", PIXPACK(0x858505), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "Solid. Generates Electricity."},
|
||||||
{"LCRY", PIXPACK(0x505050), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "Liquid Crystal. Changes colour when charged. (PSCN Charges, NSCN Discharges)"},
|
{"LCRY", PIXPACK(0x505050), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "Liquid Crystal. Changes colour when charged. (PSCN Charges, NSCN Discharges)"},
|
||||||
@ -244,7 +244,7 @@ static const part_type ptypes[PT_NUM] =
|
|||||||
{"SMKE", PIXPACK(0x222222), 0.9f, 0.04f * CFDS, 0.97f, 0.20f, 0.0f, -0.1f, 0.00f, 0.001f * CFDS, 1, 0, 0, 0, 1, 1, SC_GAS, R_TEMP+400.0f+273.15f, 88, "Smoke"},
|
{"SMKE", PIXPACK(0x222222), 0.9f, 0.04f * CFDS, 0.97f, 0.20f, 0.0f, -0.1f, 0.00f, 0.001f * CFDS, 1, 0, 0, 0, 1, 1, SC_GAS, R_TEMP+400.0f+273.15f, 88, "Smoke"},
|
||||||
{"DESL", PIXPACK(0x440000), 1.0f, 0.01f * CFDS, 0.98f, 0.95f, 0.0f, 0.1f, 0.0f, 0.0f * CFDS, 2, 2, 0, 0, 5, 1, SC_LIQUID, R_TEMP+0.0f +273.15f, 42, "Liquid. Vaporises under low pressure, explodes under high pressure and temperatures"},
|
{"DESL", PIXPACK(0x440000), 1.0f, 0.01f * CFDS, 0.98f, 0.95f, 0.0f, 0.1f, 0.0f, 0.0f * CFDS, 2, 2, 0, 0, 5, 1, SC_LIQUID, R_TEMP+0.0f +273.15f, 42, "Liquid. Vaporises under low pressure, explodes under high pressure and temperatures"},
|
||||||
{"COAL", PIXPACK(0x222222), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.0f, 0.0f * CFDS, 0, 10, 0, 0, 20, 1, SC_SOLIDS, R_TEMP+0.0f +273.15f, 200, "Solid. Burns slowly."},
|
{"COAL", PIXPACK(0x222222), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.0f, 0.0f * CFDS, 0, 10, 0, 0, 20, 1, SC_SOLIDS, R_TEMP+0.0f +273.15f, 200, "Solid. Burns slowly."},
|
||||||
{"LO2", PIXPACK(0x80A0EF), 0.6f, 0.01f * CFDS, 0.98f, 0.95f, 0.0f, 0.1f, 0.00f, 0.000f * CFDS, 2, 5000, 0, 0, 0, 1, SC_LIQUID, -210.0f +273.15f, 70, "Liquid Oxygen. Very cold. Reacts with fire"},
|
{"LO2", PIXPACK(0x80A0EF), 0.6f, 0.01f * CFDS, 0.98f, 0.95f, 0.0f, 0.1f, 0.00f, 0.000f * CFDS, 2, 5000, 0, 0, 0, 1, SC_LIQUID, 80.0f, 70, "Liquid Oxygen. Very cold. Reacts with fire"},
|
||||||
{"O2", PIXPACK(0x80A0FF), 2.0f, 0.00f * CFDS, 0.99f, 0.30f, -0.1f, 0.0f, 3.0f, 0.000f * CFDS, 0, 1000, 0, 0, 0, 1, SC_GAS, R_TEMP+0.0f +273.15f, 70, "Gas. Ignites easily."},
|
{"O2", PIXPACK(0x80A0FF), 2.0f, 0.00f * CFDS, 0.99f, 0.30f, -0.1f, 0.0f, 3.0f, 0.000f * CFDS, 0, 1000, 0, 0, 0, 1, SC_GAS, R_TEMP+0.0f +273.15f, 70, "Gas. Ignites easily."},
|
||||||
{"INWR", PIXPACK(0x544141), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "Insulated Wire. Doesn't conduct to metal or semiconductors."},
|
{"INWR", PIXPACK(0x544141), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 1, 1, 1, SC_ELEC, R_TEMP+0.0f +273.15f, 251, "Insulated Wire. Doesn't conduct to metal or semiconductors."},
|
||||||
{"YEST", PIXPACK(0xEEE0C0), 0.7f, 0.02f * CFDS, 0.96f, 0.80f, 0.0f, 0.1f, 0.00f, 0.000f * CFDS, 1, 15, 0, 0, 30, 1, SC_POWDERS, R_TEMP+0.0f +273.15f, 70, "Yeast, grows when warm (~37C)."},
|
{"YEST", PIXPACK(0xEEE0C0), 0.7f, 0.02f * CFDS, 0.96f, 0.80f, 0.0f, 0.1f, 0.00f, 0.000f * CFDS, 1, 15, 0, 0, 30, 1, SC_POWDERS, R_TEMP+0.0f +273.15f, 70, "Yeast, grows when warm (~37C)."},
|
||||||
@ -274,14 +274,14 @@ static part_state pstates[PT_NUM] =
|
|||||||
/* ICE */ {ST_SOLID, PT_NONE, 0.0f, PT_WATR, 274.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* ICE */ {ST_SOLID, PT_NONE, 0.0f, PT_WATR, 274.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* METL */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1273.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* METL */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1273.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* SPRK */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* SPRK */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* SNOW */ {ST_SOLID, PT_NONE, 0.0f, PT_WATR, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* SNOW */ {ST_SOLID, PT_NONE, 0.0f, PT_WATR, 273.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* WOOD */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_FIRE, 873.0f},
|
/* WOOD */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_FIRE, 873.0f},
|
||||||
/* NEUT */ {ST_GAS, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* NEUT */ {ST_GAS, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* PLUT */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* PLUT */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* PLNT */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_FIRE, 573.0f},
|
/* PLNT */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_FIRE, 573.0f},
|
||||||
/* ACID */ {ST_LIQUID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* ACID */ {ST_LIQUID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* VOID */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* VOID */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* WTRV */ {ST_GAS, PT_ICEI, 0.0f, PT_DSTW, 371.0f, PT_NONE, 373.0f, PT_NONE, 0.0f},
|
/* WTRV */ {ST_GAS, PT_ICEI, 273.0f, PT_DSTW, 371.0f, PT_NONE, 373.0f, PT_NONE, 0.0f},
|
||||||
/* CNCT */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1123.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* CNCT */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1123.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* DSTW */ {ST_LIQUID, PT_ICEI, 273.15f, PT_NONE, 0.0f, PT_WTRV, 373.0f, PT_NONE, 0.0f},
|
/* DSTW */ {ST_LIQUID, PT_ICEI, 273.15f, PT_NONE, 0.0f, PT_WTRV, 373.0f, PT_NONE, 0.0f},
|
||||||
/* SALT */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1173.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* SALT */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1173.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
@ -295,7 +295,7 @@ static part_state pstates[PT_NUM] =
|
|||||||
/* MWAX */ {ST_LIQUID, PT_WAX, 318.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_FIRE, 673.0f},
|
/* MWAX */ {ST_LIQUID, PT_WAX, 318.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_FIRE, 673.0f},
|
||||||
/* PSCN */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1687.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* PSCN */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1687.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* NSCN */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1687.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* NSCN */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1687.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* LNTG */ {ST_SOLID, PT_NICE, 76.0f, PT_NONE, 0.0f, PT_NONE, 78.0f, PT_NONE, 0.0f},
|
/* LNTG */ {ST_SOLID, PT_NICE, 63.0f, PT_NONE, 0.0f, PT_NONE, 77.0f, PT_NONE, 0.0f},
|
||||||
/* FOAM */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* FOAM */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* BHOL */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* BHOL */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* WHOL */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* WHOL */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
@ -309,7 +309,7 @@ static part_state pstates[PT_NUM] =
|
|||||||
/* THDR */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* THDR */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* PLSM */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* PLSM */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* ETRD */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* ETRD */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* NICE */ {ST_SOLID, PT_NONE, 0.0f, PT_LNTG, 77.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* NICE */ {ST_SOLID, PT_NONE, 0.0f, PT_LNTG, 63.1f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* NBLE */ {ST_GAS, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* NBLE */ {ST_GAS, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* BTRY */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_PLSM, 2273.0f},
|
/* BTRY */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_PLSM, 2273.0f},
|
||||||
/* LCRY */ {ST_SOLID, PT_NONE, 0.0f, PT_BGLA, 1273.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* LCRY */ {ST_SOLID, PT_NONE, 0.0f, PT_BGLA, 1273.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
@ -318,10 +318,10 @@ static part_state pstates[PT_NUM] =
|
|||||||
/* SMKE */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* SMKE */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* DESL */ {ST_LIQUID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_FIRE, 335.0f},
|
/* DESL */ {ST_LIQUID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_FIRE, 335.0f},
|
||||||
/* COAL */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* COAL */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* LO2 */ {ST_LIQUID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_O2, 453.0f, PT_NONE, 0.0f},
|
/* LO2 */ {ST_LIQUID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_O2, 90.1f, PT_NONE, 0.0f},
|
||||||
/* O2 */ {ST_GAS, PT_NONE, 0.0f, PT_LO2, 50.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* O2 */ {ST_GAS, PT_NONE, 0.0f, PT_LO2, 90.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* INWR */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1687.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* INWR */ {ST_SOLID, PT_NONE, 0.0f, PT_LAVA, 1687.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* YEST */ {ST_SOLID, PT_NONE, 0.0f, PT_DYST, 273.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* YEST */ {ST_SOLID, PT_NONE, 0.0f, PT_DYST, 373.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* DYST */ {ST_SOLID, PT_NONE, 0.0f, PT_DUST, 473.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* DYST */ {ST_SOLID, PT_NONE, 0.0f, PT_DUST, 473.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* THRM */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* THRM */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
/* GLOW */ {ST_LIQUID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
/* GLOW */ {ST_LIQUID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
|
||||||
|
Loading…
Reference in New Issue
Block a user