diff --git a/README.md b/README.md index 9a5fd44a..11ec9e46 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,9 @@ This are just the patch files for this game. I decided to separate them from pat - hooks/LuaMessages.cpp ## Additions +- Adds new category 'OBSTRUCTSBUILDING' for props to block buildings from being build on top of those + - hooks/Reclaimable.cpp + - section/Reclaimable.cpp - Allows changing army of ACUs - hooks/HTransferACUs.cpp - Allows customize colors for team color mode diff --git a/hooks/Reclaimable.cpp b/hooks/Reclaimable.cpp new file mode 100644 index 00000000..6b2f3f74 --- /dev/null +++ b/hooks/Reclaimable.cpp @@ -0,0 +1,5 @@ +#include "../define.h" +asm( + ".section h0; .set h0,0x005F6ED2;" + "push "QU(OBSTRUCTSBUILDING)";" + ); diff --git a/section/GetTableSize.cpp b/section/GetTableSize.cpp index 6c753ff2..fdff6628 100644 --- a/section/GetTableSize.cpp +++ b/section/GetTableSize.cpp @@ -54,9 +54,9 @@ void IsTableEmpty() asm( "MOV EAX,[ESI+0xC];" "CMP EAX,[ESI+0x8];" - "JAE L72;" + "JAE L072;" "CMP DWORD PTR [EAX],0x5;" - "JNE L72;" + "JNE L072;" "MOV EAX,[EAX+0x4];" "MOV CL,[EAX+0x9];" "TEST CL,CL;" @@ -73,7 +73,7 @@ void IsTableEmpty() "L22:;" "MOV EDX,[EAX+0x20];" "TEST EDX,EDX;" - "JZ L72;" + "JZ L072;" "MOV ECX,[EAX+0x10];" "ITE_L5:;" "CMP DWORD PTR [ECX],0x0;" @@ -81,7 +81,7 @@ void IsTableEmpty() "ADD ECX,0x8;" "DEC EDX;" "JNZ ITE_L5;" - "L72:;" + "L072:;" "PUSH 0x1;" "JMP L12;" "L62:;" diff --git a/section/Reclaimable.cpp b/section/Reclaimable.cpp new file mode 100644 index 00000000..c0ce53bb --- /dev/null +++ b/section/Reclaimable.cpp @@ -0,0 +1 @@ +char OBSTRUCTSBUILDING[] = "OBSTRUCTSBUILDING"; \ No newline at end of file