mirror of https://github.com/adamdruppe/arsd.git
deprecation fixes for dmd 2.061
This commit is contained in:
parent
341a626642
commit
b48970c183
1
engine.d
1
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);
|
||||
|
|
3
screen.d
3
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;
|
||||
|
|
Loading…
Reference in New Issue