Ignore:
Timestamp:
Aug 26, 2014, 1:08:25 AM (10 years ago)
Author:
alloc
Message:

Fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/assembly-patcher/Main.cs

    r115 r128  
    2020                        markTypePatched (module, type);
    2121
     22                        mappingPatch (module);
    2223                        consoleOutputPatch (module);
    2324                        telnetPatch (module);
     
    2930                        Console.WriteLine ("Done");
    3031
     32                }
     33
     34                private static void mappingPatch (ModuleDefinition module)
     35                {
     36                        TypeDefinition type = module.GetType ("Chunk");
     37                        addHook (type, "CalcMapColors", true, 0, true, typeof(MapRendering).GetMethod ("RenderSingleChunk"));
    3138                }
    3239
Note: See TracChangeset for help on using the changeset viewer.