Skip to content

Commit

Permalink
Merge pull request #262 from woisalreadytaken/hitthetarget-playercoun…
Browse files Browse the repository at this point in the history
…t-fix

Fix players sometimes being teleported out of the map in the Hit The Target microgame
  • Loading branch information
safalin1 authored Feb 24, 2024
2 parents 73c8815 + 3ef3a2a commit 8317006
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripting/Minigames/Minigame18.sp
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ public void Minigame18_OnMinigameSelected(int client)
float ang[3] = { 0.0, 90.0, 0.0 };
float pos[3];

int column = client;
int row = 0;
int column = (client - 1) % 32;
int row = ((client - 1) / 32) % 2;

pos[0] = 10406.0 + float(column*60);
pos[0] = 10466.0 + float(column*60);
pos[1] = 7100.0 - float(row*100);
pos[2] = -260.0;

Expand Down

0 comments on commit 8317006

Please sign in to comment.