Backport commit 1184 (origional author: kmetykog; origional log: Fixed wrong condition typo.)

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@1844 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 6ac710f7a809442e04f2a2a005f418af7b3d5b11
Former-commit-id: c975061ca66278df17499140a5a9a4ade07d30ff
This commit is contained in:
martkelder 2009-11-18 14:53:31 +00:00
parent 1b19a1c931
commit 3afb79e474

View file

@ -101,7 +101,7 @@ void grInitSmoke(int index)
if (!mst) {
sprintf(buf, "data/textures;data/img;.");
mst = (ssgSimpleState*)grSsgLoadTexStateEx("smoke.rgb", buf, FALSE, FALSE);
if (mst!=NULL) {
if (mst != NULL) {
mst->disable(GL_LIGHTING);
mst->enable(GL_BLEND);
mst->disable(GL_CULL_FACE);
@ -113,7 +113,7 @@ void grInitSmoke(int index)
if (!mstf0) {
sprintf(buf, "data/textures;data/img;.");
mstf0 = (ssgSimpleState*)grSsgLoadTexStateEx("fire0.rgb", buf, FALSE, FALSE);
if (mst!=NULL) {
if (mstf0 != NULL) {
mstf0->disable(GL_LIGHTING);
mstf0->enable(GL_BLEND);
mstf0->disable(GL_CULL_FACE);
@ -125,7 +125,7 @@ void grInitSmoke(int index)
if (!mstf1) {
sprintf(buf, "data/textures;data/img;.");
mstf1 = (ssgSimpleState*)grSsgLoadTexStateEx("fire1.rgb", buf, FALSE, FALSE);
if (mst!=NULL) {
if (mstf1 != NULL) {
mstf1->disable(GL_LIGHTING);
mstf1->enable(GL_BLEND);
mstf1->disable(GL_CULL_FACE);