mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-11 08:36:38 -04:00
Whoops
This commit is contained in:
parent
1eb1af9389
commit
c89e224050
@ -1062,12 +1062,12 @@ void LocalPlayers_MoveToSpawn(struct LocationUpdate* update) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LocalPlayer_CalcDefaultSpawn(struct LocalPlayer* p, struct LocationUpdate* update) {
|
void LocalPlayer_CalcDefaultSpawn(struct LocalPlayer* p, struct LocationUpdate* update) {
|
||||||
float x = 0;//(World.Width / 2) + 0.5f;
|
float x = (World.Width / 2) + 0.5f;
|
||||||
float z = 0;//(World.Length / 2) + 0.5f;
|
float z = (World.Length / 2) + 0.5f;
|
||||||
|
|
||||||
update->flags = LU_HAS_POS | LU_HAS_YAW | LU_HAS_PITCH;
|
update->flags = LU_HAS_POS | LU_HAS_YAW | LU_HAS_PITCH;
|
||||||
update->pos = Respawn_FindSpawnPosition(x, z, p->Base.Size);
|
update->pos = Respawn_FindSpawnPosition(x, z, p->Base.Size);
|
||||||
update->yaw = 45.0f;
|
update->yaw = 0.0f;
|
||||||
update->pitch = 0.0f;
|
update->pitch = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ static void SPConnection_BeginConnect(void) {
|
|||||||
horSize = 16;
|
horSize = 16;
|
||||||
verSize = 16;
|
verSize = 16;
|
||||||
#elif defined CC_BUILD_LOWMEM
|
#elif defined CC_BUILD_LOWMEM
|
||||||
horSize = 128;
|
horSize = 64;
|
||||||
verSize = 64;
|
verSize = 64;
|
||||||
#else
|
#else
|
||||||
horSize = Game_ClassicMode ? 256 : 128;
|
horSize = Game_ClassicMode ? 256 : 128;
|
||||||
@ -150,7 +150,7 @@ static void SPConnection_BeginConnect(void) {
|
|||||||
Gen_Active = &NotchyGen;
|
Gen_Active = &NotchyGen;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Gen_Seed = 6789;;//Random_Next(&rnd, Int32_MaxValue);
|
Gen_Seed = Random_Next(&rnd, Int32_MaxValue);
|
||||||
Gen_Start();
|
Gen_Start();
|
||||||
|
|
||||||
GeneratingScreen_Show();
|
GeneratingScreen_Show();
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#define INT_VGA 0x10
|
#define INT_VGA 0x10
|
||||||
#define VGA_CMD_SETMODE 0x0000
|
#define VGA_CMD_SETMODE 0x0000
|
||||||
|
#define VGA_MODE_TEXT_BW 0x02
|
||||||
#define VGA_MODE_320x200_8 0x13
|
#define VGA_MODE_320x200_8 0x13
|
||||||
|
|
||||||
#define INT_MOUSE 0x33
|
#define INT_MOUSE 0x33
|
||||||
@ -199,7 +200,11 @@ void Window_Free(void) {
|
|||||||
Mem_Set(screen, 0, DISP_WIDTH * DISP_HEIGHT);
|
Mem_Set(screen, 0, DISP_WIDTH * DISP_HEIGHT);
|
||||||
|
|
||||||
__djgpp_nearptr_disable();
|
__djgpp_nearptr_disable();
|
||||||
// TODO restore VGA mode and palette?
|
|
||||||
|
// Restore VGA to text mode
|
||||||
|
__dpmi_regs regs;
|
||||||
|
regs.x.ax = VGA_CMD_SETMODE | VGA_MODE_TEXT_BW;
|
||||||
|
__dpmi_int(INT_VGA, ®s);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void DoCreateWindow(int width, int height) {
|
static void DoCreateWindow(int width, int height) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user