Skip to content

Commit

Permalink
keybind.cpp: Fix spawn position of first clone in clone cheat
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenangelico committed Nov 10, 2023
1 parent e81ca4f commit 477ef06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keybind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ void kf_CloneSelected(int limit)
// create a new droid army
for (int i = 0; i < limit; i++)
{
Vector2i pos = psDroid->pos.xy() + iSinCosR(40503 * i, iSqrt(50 * 50 * i)); // 40503 = 65536/φ
Vector2i pos = psDroid->pos.xy() + iSinCosR(40503 * i, iSqrt(50 * 50 * (i + 1))); // 40503 = 65536/φ (A bit more than a right angle)
DROID *psNewDroid = buildDroid(sTemplate, pos.x, pos.y, psDroid->player, false, nullptr);
if (psNewDroid)
{
Expand Down

0 comments on commit 477ef06

Please sign in to comment.