Skip to content

Commit 42f8050

Browse files
committed
Remove redundant casts
Fixes: c6640cc
1 parent 85eae75 commit 42f8050

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Descent3/demofile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ void DemoWriteHeader() {
401401
ASSERT(Demo_flags == DF_RECORDING);
402402

403403
// Start off with the signature
404-
cf_WriteString(Demo_cfp, (const char *)szsig);
404+
cf_WriteString(Demo_cfp, szsig);
405405
// Next is the version
406406
cf_WriteShort(Demo_cfp, GAMESAVE_VERSION);
407407
// Write the mission filename
@@ -774,7 +774,7 @@ int DemoReadHeader() {
774774
// Now load the mission
775775
Osiris_DisableCreateEvents();
776776
IsRestoredGame = true;
777-
if (LoadMission((const char *)demo_mission)) {
777+
if (LoadMission(demo_mission)) {
778778
mng_LoadAddonPages();
779779

780780
SetCurrentLevel(level_num);

Descent3/game.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ void SetScreenMode(int sm, bool force_res_change) {
969969
} else {
970970
int t = FindArg("-ForceStateLimited");
971971
if (t) {
972-
StateLimited = (atoi((const char *)GameArgs[t + 1]) != 0);
972+
StateLimited = (atoi(GameArgs[t + 1]) != 0);
973973
}
974974

975975
if (rend_initted == -1) {

0 commit comments

Comments
 (0)