diff options
author | Ľubomír Remák | 2018-04-11 21:54:18 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
commit | 29a809d691c77b549bea615421d9e840f3773142 (patch) | |
tree | cb9b737f67a7e7bede369bf72e65c244712e41b3 /engines/mutationofjb/commands/changecommand.cpp | |
parent | c25ed8957228cfd580216383c3391ccc7e512bb5 (diff) | |
download | scummvm-rg350-29a809d691c77b549bea615421d9e840f3773142.tar.gz scummvm-rg350-29a809d691c77b549bea615421d9e840f3773142.tar.bz2 scummvm-rg350-29a809d691c77b549bea615421d9e840f3773142.zip |
MUTATIONOFJB: Add rename command.
Diffstat (limited to 'engines/mutationofjb/commands/changecommand.cpp')
-rw-r--r-- | engines/mutationofjb/commands/changecommand.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mutationofjb/commands/changecommand.cpp b/engines/mutationofjb/commands/changecommand.cpp index f2639b620e..a2d45260f5 100644 --- a/engines/mutationofjb/commands/changecommand.cpp +++ b/engines/mutationofjb/commands/changecommand.cpp @@ -66,7 +66,7 @@ bool ChangeCommandParser::parseValueString(const Common::String &valueString, bo if (valueString.hasPrefix("NM")) { reg = ChangeCommand::NM; op = ChangeCommand::SetValue; - strncpy(ccv._strVal, val, MAX_STR_LENGTH); + strncpy(ccv._strVal, val, MAX_ENTITY_NAME_LENGTH); } else if (valueString.hasPrefix("LT")) { reg = ChangeCommand::LT; ccv._byteVal = parseInteger(val, op); @@ -324,7 +324,7 @@ Command::ExecuteResult ChangeDoorCommand::execute(ScriptExecutionContext &script switch (_register) { case NM: - strncpy(door->_name, _value._strVal, MAX_STR_LENGTH); + strncpy(door->_name, _value._strVal, MAX_ENTITY_NAME_LENGTH); break; case LT: door->_destSceneId = _value._byteVal; @@ -447,7 +447,7 @@ Command::ExecuteResult ChangeStaticCommand::execute(ScriptExecutionContext &scri stat->_active = _value._byteVal; break; case NM: - strncpy(stat->_name, _value._strVal, MAX_STR_LENGTH); + strncpy(stat->_name, _value._strVal, MAX_ENTITY_NAME_LENGTH); break; case XX: stat->_x = _value._wordVal; |