Skip to content

Commit

Permalink
fix: AMXX 1.9.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 committed May 28, 2023
1 parent 1ac6391 commit af9bf05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cstrike/addons/amxmodx/scripting/include/redm.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@

new const VERSION[] = "%VERSION%"

// AMXX 1.9.0 compatibility
#if !defined MAX_MAPNAME_LENGTH
#define MAX_MAPNAME_LENGTH 64
#endif


/**
* Returns whether Re:DM is active
*
Expand Down
2 changes: 1 addition & 1 deletion cstrike/addons/amxmodx/scripting/redm_spawns.sma
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ static bool: Spawn_Add(const player) {
return Add(origin, angle, vAngle, team, g_editorProps[player][ep_group])
}

static bool: Add(const Float: origin[3], const Float: angle[3], const Float: vAngle[3], const team, const group[32]) {
static bool: Add(const Float: origin[3], const Float: angle[3], const Float: vAngle[3], const team, const group[]) {
new entity = Spawn_CreateEntity()
if (!Spawn_EntitySetPosition(entity, origin, angle, vAngle)) {
Spawn_Delete(entity)
Expand Down

0 comments on commit af9bf05

Please sign in to comment.