Skip to content

Commit

Permalink
Fix accidental bitwise op in RunCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dysphie committed Dec 22, 2022
1 parent d2bdce6 commit b0626a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripting/nmrih-guaranteedspawn.sp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "nmrih-guaranteedspawn/admin-tools.sp"

#define PREFIX "[Guaranteed Spawn] "
#define PLUGIN_VERSION "1.0.17"
#define PLUGIN_VERSION "1.0.18"
#define PLUGIN_DESCRIPTION "Grants a spawn to late joiners"

#define INET_ADDRSTRLEN 16
Expand Down Expand Up @@ -471,7 +471,7 @@ int GetObserverTarget(int client)
public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3], float angles[3], int& weapon, int& subtype, int& cmdnum, int& tickcount, int& seed, int mouse[2])
{
bool pressedUse = (buttons & IN_USE) && !(GetOldButtons(client) & IN_USE);
if (pressedUse & CouldSpawnThisRound(client))
if (pressedUse && CouldSpawnThisRound(client))
{
int target = GetBestSpawnTarget(client, true);
if (target != -1) {
Expand Down

0 comments on commit b0626a6

Please sign in to comment.