can these guys code in ANSI C????

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@513 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2011-12-13 09:12:16 +00:00
parent 4a08a54a78
commit b76812e60d

View file

@ -20,7 +20,7 @@ Index: Quake/gl_model.c
+ if (r_externaltexture_fix.value) { + if (r_externaltexture_fix.value) {
+ if (strstr(tx->name,"sky4")) { + if (strstr(tx->name,"sky4")) {
+ if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==13039) + if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==13039)
+ sprintf(tx->name,"sky1"); + strcpy(tx->name,"sky1");
+ Con_Printf(" using %s\n", tx->name); + Con_Printf(" using %s\n", tx->name);
+ } + }
+ } //mk -- end + } //mk -- end
@ -37,44 +37,44 @@ Index: Quake/gl_model.c
+ if (r_externaltexture_fix.value) { + if (r_externaltexture_fix.value) {
+ if (strstr(tx->name,"plat_top1")) { + if (strstr(tx->name,"plat_top1")) {
+ if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==24428) + if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==24428)
+ sprintf(tx->name,"plat_top1_cable"); + strcpy(tx->name,"plat_top1_cable");
+ else + else
+ sprintf(tx->name,"plat_top1_bolt"); + strcpy(tx->name,"plat_top1_bolt");
+ Con_Printf(" using %s\n", tx->name); + Con_Printf(" using %s\n", tx->name);
+ } + }
+ +
+ if (strstr(tx->name,"metal5_2")) { + if (strstr(tx->name,"metal5_2")) {
+ if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==49173) + if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==49173)
+ sprintf(tx->name,"metal5_2_x"); + strcpy(tx->name,"metal5_2_x");
+ else + else
+ sprintf(tx->name,"metal5_2_arc"); + strcpy(tx->name,"metal5_2_arc");
+ Con_Printf(" using %s\n", tx->name); + Con_Printf(" using %s\n", tx->name);
+ } + }
+ +
+ if (strstr(tx->name,"metal5_4")) { + if (strstr(tx->name,"metal5_4")) {
+ if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==20977) + if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==20977)
+ sprintf(tx->name,"metal5_4_double"); + strcpy(tx->name,"metal5_4_double");
+ else + else
+ sprintf(tx->name,"metal5_4_arc"); + strcpy(tx->name,"metal5_4_arc");
+ Con_Printf(" using %s\n", tx->name); + Con_Printf(" using %s\n", tx->name);
+ } + }
+ if (strstr(tx->name,"metal5_8")) { + if (strstr(tx->name,"metal5_8")) {
+ if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==48444) + if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==48444)
+ sprintf(tx->name,"metal5_8_rune"); + strcpy(tx->name,"metal5_8_rune");
+ else + else
+ sprintf(tx->name,"metal5_8_back"); + strcpy(tx->name,"metal5_8_back");
+ Con_Printf(" using %s\n", tx->name); + Con_Printf(" using %s\n", tx->name);
+ } + }
+ if (strstr(tx->name,"metal5_8")) { + if (strstr(tx->name,"metal5_8")) {
+ if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==48444) + if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==48444)
+ sprintf(tx->name,"metal5_8_rune"); + strcpy(tx->name,"metal5_8_rune");
+ else + else
+ sprintf(tx->name,"metal5_8_back"); + strcpy(tx->name,"metal5_8_back");
+ Con_Printf(" using %s\n", tx->name); + Con_Printf(" using %s\n", tx->name);
+ } + }
+ if (strstr(tx->name,"window03")) { + if (strstr(tx->name,"window03")) {
+ if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==63697) // e4m2 variant + if (CRC_Block((byte *)(tx+1), tx->width * tx->height)==63697) // e4m2 variant
+ sprintf(tx->name,"window03_e4m2"); + strcpy(tx->name,"window03_e4m2");
+ Con_Printf(" using %s\n", tx->name); + Con_Printf(" using %s\n", tx->name);
+ } + }
+ } //mk end + } //mk end