mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 04:42:28 +00:00
int to uint8 conversions fix
This commit is contained in:
parent
4d3914043b
commit
d94364f2e3
@ -2643,7 +2643,7 @@ void command_makepet(Client *c, const Seperator *sep)
|
|||||||
|
|
||||||
void command_level(Client *c, const Seperator *sep)
|
void command_level(Client *c, const Seperator *sep)
|
||||||
{
|
{
|
||||||
uint16 level = atoi(sep->arg[1]);
|
uint8 level = atoi(sep->arg[1]);
|
||||||
|
|
||||||
if ((level <= 0) || ((level > RuleI(Character, MaxLevel)) && (c->Admin() < commandLevelAboveCap))) {
|
if ((level <= 0) || ((level > RuleI(Character, MaxLevel)) && (c->Admin() < commandLevelAboveCap))) {
|
||||||
c->Message(0, "Error: #Level: Invalid Level");
|
c->Message(0, "Error: #Level: Invalid Level");
|
||||||
@ -2699,7 +2699,7 @@ void command_spawn(Client *c, const Seperator *sep)
|
|||||||
void command_texture(Client *c, const Seperator *sep)
|
void command_texture(Client *c, const Seperator *sep)
|
||||||
{
|
{
|
||||||
|
|
||||||
uint16 texture;
|
uint8 texture;
|
||||||
if (sep->IsNumber(1) && atoi(sep->arg[1]) >= 0 && atoi(sep->arg[1]) <= 255) {
|
if (sep->IsNumber(1) && atoi(sep->arg[1]) >= 0 && atoi(sep->arg[1]) <= 255) {
|
||||||
texture = atoi(sep->arg[1]);
|
texture = atoi(sep->arg[1]);
|
||||||
uint8 helm = 0xFF;
|
uint8 helm = 0xFF;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user