浏览代码

Follow up to 10bac96
* Adjusted the directional check for script command pushpc.

aleos89 9 年之前
父节点
当前提交
af8524aa7d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/script.c

+ 1 - 1
src/map/script.c

@@ -19244,7 +19244,7 @@ BUILDIN_FUNC(pushpc)
 	dir = script_getnum(st,2);
 	cells     = script_getnum(st,3);
 
-	if(dir>DIR_NORTHEAST)
+	if(dir >= DIR_MAX)
 	{
 		ShowWarning("buildin_pushpc: Invalid direction %d specified.\n", dir);
 		script_reportsrc(st);