Skip to content

Commit 9f0e267

Browse files
author
Niko
committed
OnlineCTR fixes
1 parent 56c973d commit 9f0e267

File tree

4 files changed

+7
-29
lines changed

4 files changed

+7
-29
lines changed

decompile/General/AltMods/OnlineCTR/hooks.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ int OnlineGetNumDrivers()
88

99
void octr_entryHook()
1010
{
11-
// Until VehBirth_TeleportSelf is rewritten
12-
// AdvHub, replace default spawn with unused
13-
// start-line spawn, turn BEQ to JMP
14-
*(char*)0x80058072 = 0;
15-
1611
// BOTS_Adv_AdjustDifficulty(); must be called before
1712
// initializing any AI, either BOTS_Driver_Init or
1813
// from BOTS_Driver_Convert. If AIs are wanted, then
@@ -116,12 +111,6 @@ void OnlineInit_Drivers(struct GameTracker* gGT)
116111

117112
// realID
118113
dr->driverID = i+1;
119-
120-
#ifdef USE_60FPS
121-
// needed cause VehBirth_TeleportSelf
122-
// has not been rewritten yet for decomp
123-
dr->instSelf->animFrame = FPS_DOUBLE(10);
124-
#endif
125114
}
126115

127116
// init, save
@@ -135,12 +124,6 @@ void OnlineInit_Drivers(struct GameTracker* gGT)
135124
// realID
136125
dr->driverID = 0;
137126

138-
#ifdef USE_60FPS
139-
// needed cause VehBirth_TeleportSelf
140-
// has not been rewritten yet for decomp
141-
dr->instSelf->animFrame = FPS_DOUBLE(10);
142-
#endif
143-
144127
for(i = i+1; i < octr->NumDrivers; i++)
145128
{
146129
if(octr->nameBuffer[i][0] == 0)
@@ -159,12 +142,6 @@ void OnlineInit_Drivers(struct GameTracker* gGT)
159142

160143
// realID
161144
dr->driverID = i;
162-
163-
#ifdef USE_60FPS
164-
// needed cause VehBirth_TeleportSelf
165-
// has not been rewritten yet for decomp
166-
dr->instSelf->animFrame = FPS_DOUBLE(10);
167-
#endif
168145
}
169146

170147
if (gGT->levelID != 0x26/*INTRO_RACE_TODAY*/) //was 0x26 (globe level)

decompile/General/Vehicle/VehBirth_0_TeleportSelf.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ void DECOMP_VehBirth_TeleportSelf(struct Driver *d, u_char spawnFlag, int spawnP
5252
rotDeltaY = 0;
5353
}
5454

55+
// always spawn using the
56+
// 8-place starting line
57+
#ifndef USE_ONLINE
58+
5559
// If just obtained Roo boss key
5660
// spawn in front of hub door, beach-to-gemstone
5761
else if (
@@ -154,6 +158,8 @@ void DECOMP_VehBirth_TeleportSelf(struct Driver *d, u_char spawnFlag, int spawnP
154158
rotDeltaY = 0x400;
155159
}
156160

161+
#endif // USE_ONLINE
162+
157163
// normal track,
158164
// or advHub return from:
159165
// main menu

decompile/General/Vehicle/VehBirth_1_TeleportAll.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,5 @@ void DECOMP_VehBirth_TeleportAll(struct GameTracker *gGT, u_int spawnFlags)
3333

3434
#endif
3535
}
36-
37-
#ifdef USE_60FPS
38-
// needed cause VehBirth_TeleportSelf
39-
// has not been rewritten yet for decomp
40-
d->instSelf->animFrame = FPS_DOUBLE(10);
41-
#endif
4236
}
4337
}

include/common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#define USE_RAMEX
3030
#define USE_BIGQUEUE
3131
#define USE_HIGH1P
32+
#define USE_DEFRAG
3233

3334
//note: if you disable this, you'll need to fix anything related to the `ROOM_...` defines in global.h
3435
#define USE_RETROFUELED //enabled only in certain rooms.

0 commit comments

Comments
 (0)