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;