Skip to content

Commit

Permalink
Fixed: Return the materialnum_t rather than ofTypeID for the skymask …
Browse files Browse the repository at this point in the history
…material when queried via DD_GetVariable.
  • Loading branch information
danij committed Oct 25, 2008
1 parent c514873 commit 9ef057d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doomsday/engine/portable/src/dd_main.c
Expand Up @@ -927,9 +927,7 @@ void* DD_GetVariable(int ddvalue)
return &gx;

case DD_SKYMASKMATERIAL_NUM:
if(skyMaskMaterial)
return &skyMaskMaterial->ofTypeID;
return 0;
return R_GetMaterialNum(skyMaskMaterial);

case DD_VIEWX:
return &viewX;
Expand Down

0 comments on commit 9ef057d

Please sign in to comment.