Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff framerate_type_original.h src/framerate_type.h
- 29a30
- > PFE_SPRITEGROUP,
- diff framerate_gui_original.cpp src/framerate_gui.cpp
- 167a168
- > PerformanceData(10000.0), // PFE_SPRITEGROUP
- 792a794
- > "Sprite group",
- 795c797
- < static const PerformanceElement rate_elements[] = { PFE_GAMELOOP, PFE_DRAWING, PFE_VIDEO };
- ---
- > static const PerformanceElement rate_elements[] = { PFE_GAMELOOP, PFE_DRAWING, PFE_VIDEO, };
- diff newgrf_spritegroup_original.cpp src/newgrf_spritegroup.cpp
- 19a20
- > #include "framerate_type.h"
- 68a70
- > case 0x1A: return UINT_MAX;
- 80a83
- > // printf("GRF ID: %X, Variable: %X",object.grffile->grfid, variable);
- 82c85,89
- < if (variable < 0x40 && GetGlobalVariable(variable, &value, object.grffile)) return value;
- ---
- > if (variable < 0x40 && GetGlobalVariable(variable, &value, object.grffile)) {
- > // printf(", common\n");
- > return value;
- > }
- > // printf(", uncommon\n");
- 214a222
- > PerformanceAccumulator framerate(PFE_SPRITEGROUP);
- 226c234,240
- < if (adjust->variable == 0x7E) {
- ---
- > byte current_var = adjust->variable;
- > // printf("GRF ID: %X, Variable: %X, Check: %d\n",object.grffile->grfid, current_var, _sprite_group_resolve_check_veh_check);
- >
- > if (current_var == 0x1A) {
- > value = UINT_MAX;
- >
- > } else if (current_var == 0x7E) {
- 236c250
- < } else if (adjust->variable == 0x7B) {
- ---
- > } else if (current_var == 0x7B) {
- 241c255
- < switch (adjust->variable) {
- ---
- > switch (current_var) {
- 244c258
- < case 0x1A:
- ---
- > // case 0x1A:
- 277c291
- < if (_sprite_group_resolve_check_veh_type != VEH_ROAD) {
- ---
- > if (_sprite_group_resolve_check_veh_type != VEH_ROAD) {
- 287c301
- < value = GetVariable(object, scope, adjust->variable, adjust->parameter, &available);
- ---
- > value = GetVariable(object, scope, current_var, adjust->parameter, &available);
- 313a328
- > // printf("GRF ID: %X, Variable: %X, size_type: %d\n", object.grffile->grfid, current_var, this->size);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement