From b48970c183728f61701579567c453639497c77c3 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sat, 12 Jan 2013 18:15:02 -0500 Subject: [PATCH] deprecation fixes for dmd 2.061 --- engine.d | 1 + screen.d | 3 +++ 2 files changed, 4 insertions(+) diff --git a/engine.d b/engine.d index 85af628..b943e3b 100644 --- a/engine.d +++ b/engine.d @@ -261,6 +261,7 @@ class Engine{ // And handle the data here. switch(clients[a].state){ + default: assert(0); case 0: // this is the timestamp and stuff int ts = SDLNet_Read32(data.ptr); clients[a].numPlayers = SDLNet_Read32(data.ptr+4); diff --git a/screen.d b/screen.d index 23b32a5..2bb262c 100644 --- a/screen.d +++ b/screen.d @@ -550,12 +550,14 @@ class Screen : Drawable{ void switchSplitScreenMode(int player, int numberOfPlayers, bool horizontal){ switch(numberOfPlayers){ + default: assert(0); case 1: return; // glViewport(0, 0, xr, yr); break; case 2: switch(player){ + default: assert(0); case 0: if(horizontal) glViewport(0, yr / 2, xr, yr / 2); @@ -573,6 +575,7 @@ class Screen : Drawable{ case 3: case 4: switch(player){ + default: assert(0); case 0: glViewport(0, yr / 2, xr / 2, yr / 2); break;