X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGraphic%2FModels.cpp;h=ee5add1a88dde9aa6cbb3dd281c372ba300d31c7;hb=e60cbd7add6123d81b3c35543296449b5d02cbaa;hp=0c403c218bb19f1dd23bf68cb72c42107bbbbff5;hpb=a8d3adab262e66f609fa9b0a18d47cf27a0e65f0;p=lugaru.git diff --git a/Source/Graphic/Models.cpp b/Source/Graphic/Models.cpp index 0c403c2..ee5add1 100644 --- a/Source/Graphic/Models.cpp +++ b/Source/Graphic/Models.cpp @@ -28,7 +28,7 @@ extern float viewdistance; extern XYZ viewer; extern float fadestart; extern float texdetail; -extern bool decals; +extern bool decalstoggle; int Model::LineCheck(XYZ *p1, XYZ *p2, XYZ *p, XYZ *move, float *rotate) { @@ -962,7 +962,7 @@ void Model::drawdifftex(Texture texture) void Model::drawdecals(Texture shadowtexture, Texture bloodtexture, Texture bloodtexture2, Texture breaktexture) { - if (decals) { + if (decalstoggle) { if (type != decalstype) return; static int i; @@ -1062,7 +1062,7 @@ void Model::drawdecals(Texture shadowtexture, Texture bloodtexture, Texture bloo void Model::DeleteDecal(int which) { - if (decals) { + if (decalstoggle) { if (type != decalstype) return; decaltype[which] = decaltype[numdecals - 1]; @@ -1081,7 +1081,7 @@ void Model::DeleteDecal(int which) void Model::MakeDecal(int atype, XYZ *where, float *size, float *opacity, float *rotation) { - if (decals) { + if (decalstoggle) { if (type != decalstype) return; @@ -1159,7 +1159,7 @@ void Model::MakeDecal(int atype, XYZ *where, float *size, float *opacity, float void Model::MakeDecal(int atype, XYZ where, float size, float opacity, float rotation) { - if (decals) { + if (decalstoggle) { if (type != decalstype) return;