Skip to content

Commit

Permalink
Display the floor and ceiling material name rather than the materialn…
Browse files Browse the repository at this point in the history
…um in the "where" debug cheat info.
  • Loading branch information
danij committed Nov 30, 2008
1 parent f742e40 commit c93d268
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
8 changes: 4 additions & 4 deletions doomsday/plugins/jdoom/src/m_cheat.c
Expand Up @@ -523,10 +523,10 @@ static void CheatDebugFunc(player_t *player, cheat_t *cheat)
Con_Message(textBuffer);
sub = player->plr->mo->subsector;
Con_Message("\nSubsector %i:\n", P_ToIndex(sub));
Con_Message(" Floorz:%g pic:%d\n", P_GetFloatp(sub, DMU_FLOOR_HEIGHT),
P_GetIntp(sub, DMU_FLOOR_MATERIAL));
Con_Message(" Ceilingz:%g pic:%d\n", P_GetFloatp(sub, DMU_CEILING_HEIGHT),
P_GetIntp(sub, DMU_CEILING_MATERIAL));
Con_Message(" FloorZ:%g Material:%s\n", P_GetFloatp(sub, DMU_FLOOR_HEIGHT),
R_MaterialNameForNum(P_GetIntp(sub, DMU_FLOOR_MATERIAL)));
Con_Message(" CeilingZ:%g Material:%s\n", P_GetFloatp(sub, DMU_CEILING_HEIGHT),
R_MaterialNameForNum(P_GetIntp(sub, DMU_CEILING_MATERIAL)));
Con_Message("Player height:%g Player radius:%g\n",
player->plr->mo->height, player->plr->mo->radius);
}
Expand Down
8 changes: 4 additions & 4 deletions doomsday/plugins/jdoom64/src/m_cheat.c
Expand Up @@ -555,10 +555,10 @@ static void CheatDebugFunc(player_t *player, cheatseq_t *cheat)
Con_Message(textBuffer);
sub = player->plr->mo->subsector;
Con_Message("\nSubsector %i:\n", P_ToIndex(sub));
Con_Message(" Floorz:%g pic:%d\n", P_GetFloatp(sub, DMU_FLOOR_HEIGHT),
P_GetIntp(sub, DMU_FLOOR_MATERIAL));
Con_Message(" Ceilingz:%g pic:%d\n", P_GetFloatp(sub, DMU_CEILING_HEIGHT),
P_GetIntp(sub, DMU_CEILING_MATERIAL));
Con_Message(" FloorZ:%g Material:%s\n", P_GetFloatp(sub, DMU_FLOOR_HEIGHT),
R_MaterialNameForNum(P_GetIntp(sub, DMU_FLOOR_MATERIAL)));
Con_Message(" CeilingZ:%g Material:%s\n", P_GetFloatp(sub, DMU_CEILING_HEIGHT),
R_MaterialNameForNum(P_GetIntp(sub, DMU_CEILING_MATERIAL)));
Con_Message("Player height:%g Player radius:%g\n",
player->plr->mo->height, player->plr->mo->radius);
}
Expand Down
10 changes: 4 additions & 6 deletions doomsday/plugins/jheretic/src/m_cheat.c
Expand Up @@ -707,12 +707,10 @@ static void CheatDebugFunc(player_t *player, cheatseq_t *cheat)
Con_Message(textBuffer);
sub = player->plr->mo->subsector;
Con_Message("\nSubsector %i:\n", P_ToIndex(sub));
Con_Message(" Floorz:%g material:%d\n",
P_GetFloatp(sub, DMU_FLOOR_HEIGHT),
P_GetIntp(sub, DMU_FLOOR_MATERIAL));
Con_Message(" Ceilingz:%g material:%d\n",
P_GetFloatp(sub, DMU_CEILING_HEIGHT),
P_GetIntp(sub, DMU_CEILING_MATERIAL));
Con_Message(" FloorZ:%g Material:%s\n", P_GetFloatp(sub, DMU_FLOOR_HEIGHT),
R_MaterialNameForNum(P_GetIntp(sub, DMU_FLOOR_MATERIAL)));
Con_Message(" CeilingZ:%g Material:%s\n", P_GetFloatp(sub, DMU_CEILING_HEIGHT),
R_MaterialNameForNum(P_GetIntp(sub, DMU_CEILING_MATERIAL)));
Con_Message("Player height:%g Player radius:%g\n",
player->plr->mo->height, player->plr->mo->radius);
}
Expand Down
8 changes: 4 additions & 4 deletions doomsday/plugins/jhexen/src/m_cheat.c
Expand Up @@ -879,10 +879,10 @@ static void CheatDebugFunc(player_t *player, cheat_t *cheat)
Con_Message(textBuffer);
sub = player->plr->mo->subsector;
Con_Message("\nSubsector %i:\n", P_ToIndex(sub));
Con_Message(" Floorz:%g pic:%d\n", P_GetFloatp(sub, DMU_FLOOR_HEIGHT),
P_GetIntp(sub, DMU_FLOOR_MATERIAL));
Con_Message(" Ceilingz:%g pic:%d\n", P_GetFloatp(sub, DMU_CEILING_HEIGHT),
P_GetIntp(sub, DMU_CEILING_MATERIAL));
Con_Message(" FloorZ:%g Material:%s\n", P_GetFloatp(sub, DMU_FLOOR_HEIGHT),
R_MaterialNameForNum(P_GetIntp(sub, DMU_FLOOR_MATERIAL)));
Con_Message(" CeilingZ:%g Material:%s\n", P_GetFloatp(sub, DMU_CEILING_HEIGHT),
R_MaterialNameForNum(P_GetIntp(sub, DMU_CEILING_MATERIAL)));
Con_Message("Player height:%g Player radius:%g\n",
player->plr->mo->height, player->plr->mo->radius);
}
Expand Down

0 comments on commit c93d268

Please sign in to comment.