1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add GDScript slave keyword deprecation warning.

This commit is contained in:
Fabio Alessandrelli
2018-09-15 01:45:43 +02:00
parent 1e9b46d687
commit c0e4d7efca
3 changed files with 7 additions and 0 deletions

View File

@@ -4443,6 +4443,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
continue;
} break;
case GDScriptTokenizer::TK_PR_SLAVE:
_add_warning(GDScriptWarning::DEPRECATED_KEYWORD, tokenizer->get_token_line(), "slave", "puppet");
case GDScriptTokenizer::TK_PR_PUPPET: {
//may be fallthrough from export, ignore if so