![]() |
Overriding Functions
Since functions became variables...
if an object joins two classes... The latter class overrides the previous, and not the previous the latter... class yyy: PHP Code:
PHP Code:
( This causes joined classes to behave differently than previous versions... Thus, backward incompatibility ) |
Ok will check it on monday
|
Ok fixed, will upload the new version soon.
|
Hrm -- If it is fixed right now... I noticed another error, although I'm not sure if it is connected with this one.
When you update a class and add a new function, the new function, even if it is higher on the class list, will not be the one called. |
Normally it should be correct now (you need to restart the npcserver) - each time when a joined class is updated it is relinking the list of functions, starting from the end of the obj.joinedclasses list, and ending with the functions of the object script.
|
| All times are GMT +2. The time now is 10:55 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.