Skip to content

Conversation

@sacr1ficez
Copy link
Contributor

@sacr1ficez sacr1ficez commented Jun 20, 2024

Partially solves #3498 due the fact the client isn't aware of debugscript level. Thanks for @TracerDS (refactored for loop) & @MegadreamsBE (help with getting rid of magic numbers).

@tederis tederis added the bugfix Solution to a bug of any kind label Jun 21, 2024
@sacr1ficez sacr1ficez requested review from TracerDS and botder June 21, 2024 16:56
@Fernando-A-Rocha
Copy link
Contributor

Nice

Copy link
Contributor

@TracerDS TracerDS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@Nico8345 Nico8345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚀

@sacr1ficez sacr1ficez marked this pull request as draft June 21, 2024 23:01
@sacr1ficez sacr1ficez marked this pull request as ready for review June 21, 2024 23:37
@sacr1ficez sacr1ficez requested a review from botder June 22, 2024 00:38
@sacr1ficez sacr1ficez marked this pull request as draft June 23, 2024 23:15
Thanks for help @FileEX

Co-Authored-By: FileEX <alkom@t.pl>
@sacr1ficez sacr1ficez marked this pull request as ready for review June 23, 2024 23:55
@Fernando-A-Rocha
Copy link
Contributor

:shipit:

Copy link
Member

@botder botder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You really don't need the enumerations in the header file. You don't use them there.

Copy link
Member

@botder botder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not going to nag any further, but you should know that CScriptDebugging::CheckForSufficientDebugLevel could be static (can also be a simple free-standing function in the .cpp file) because you don't access/modify any class member in the function.

@botder botder merged commit fcbe3fd into multitheftauto:master Jun 26, 2024
@botder botder added this to the 1.6.1 milestone Jun 26, 2024
MTABot pushed a commit that referenced this pull request Jun 26, 2024
fcbe3fd Fix server-side debugscript behavior (PR #3499)
@sacr1ficez sacr1ficez deleted the fix-sside-debugscript-behavior branch June 26, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants