issue #3309:Modify some deprecated cpp files and lua files