Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix players sometimes being teleported out of the map in the Hit The Target microgame #262

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading