Skip to content

Commit

Permalink
SetTeam modify and PlayerEx inheritance. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
laper32 committed Oct 7, 2022
1 parent 32be520 commit 9eb3fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/smlib2/entity.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ methodmap EntityEx {
// Switch team of the entity
CS_SwitchTeam(entity, iValue);
#else
#warning 'This function is game-specified. Please help us to update this part for manipulating specific game to let it works.'
ThrowNativeError(SP_ERROR_INVALID_NATIVE, "You must include specific game header(s) to let it work.");
#endif
}
}
Expand Down
2 changes: 1 addition & 1 deletion include/smlib2/player.inc
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ methodmap Player < Entity {
}
}

methodmap PlayerEx {
methodmap PlayerEx < EntityEx {
/**
* @brief Returns true if the player is connected and alive, false if not.
*
Expand Down

0 comments on commit 9eb3fd4

Please sign in to comment.