Skip to content

Commit 2c8a8c1

Browse files
committed
o shid
1 parent 7fb416b commit 2c8a8c1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

codemp/game/g_trigger.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,17 +1953,17 @@ void NewPush(gentity_t *trigger, gentity_t *player, trace_t *trace) {//JAPRO Tim
19531953
}
19541954

19551955
if (trigger && trigger->spawnflags & 32) { //Spawnflags 4 deadstops them if they are traveling in this direction... sad hack to let people retroactively fix maps without barriers
1956-
if (trigger->speed == 0 && pm->ps->velocity[0] > 0) {
1957-
pm->ps->velocity[0] = pm->ps->velocity[1] = 0;
1956+
if (trigger->speed == 0 && player->client->ps.velocity[0] > 0) {
1957+
player->client->ps.velocity[0] = player->client->ps.velocity[1] = 0;
19581958
}
1959-
else if (trigger->speed == 90 && pm->ps->velocity[1] > 0) {
1960-
pm->ps->velocity[0] = pm->ps->velocity[1] = 0;
1959+
else if (trigger->speed == 90 && player->client->ps.velocity[1] > 0) {
1960+
player->client->ps.velocity[0] = player->client->ps.velocity[1] = 0;
19611961
}
1962-
else if (trigger->speed == 180 && pm->ps->velocity[0] < 0) {
1963-
pm->ps->velocity[0] = pm->ps->velocity[1] = 0;
1962+
else if (trigger->speed == 180 && player->client->ps.velocity[0] < 0) {
1963+
player->client->ps.velocity[0] = player->client->ps.velocity[1] = 0;
19641964
}
1965-
else if (trigger->speed == 270 && pm->ps->velocity[1] < 0) {
1966-
pm->ps->velocity[0] = pm->ps->velocity[1] = 0;
1965+
else if (trigger->speed == 270 && player->client->ps.velocity[1] < 0) {
1966+
player->client->ps.velocity[0] = player->client->ps.velocity[1] = 0;
19671967
}
19681968
return;
19691969
}

0 commit comments

Comments
 (0)